#!pip install langchain-openai
from langchain_openai import ChatOpenAI
import os
import httpx
client = httpx.Client(verify=False)
llm = ChatOpenAI(
base_url="https://yourbaseurl.com",
model = "azure/genailab-maas-gpt-4.1-nano",
api_key="YourAPIKey",
http_client = client
)
response= llm.invoke("what is the 2 to the power of 20 value?")
print(response.content)
Top comments (0)