Closed FaresKi closed 2 days ago
Same issue.
workaround using "langchain-community==0.2.0", "langchain-openai==0.1.7" (thx this issue):
_http_client = httpx.Client(proxy=proxy if proxy else None)
_http_async_client = httpx.AsyncClient(proxy=proxy if proxy else None)
azure_model = AzureChatOpenAI(
openai_api_version="<api_v>",
azure_endpoint=azure_configs["base_url"],
azure_deployment=azure_configs["model_deployment"],
model=azure_configs["model_name"],
validate_base_url=False,
http_client=_http_client,
http_async_client=_http_async_client
)
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No exception or full stack trace, simply requests being timed out because they don't go thru our corporate proxy.
Description
I'm trying to tell AzureChatOpenAI to use our corporate proxy, however under langchain-openai it doesn't seem to take it in account. I've had to downgrade to use AzureChatOpenAI in langchain and downgrade the OpenAI package to respectively: langchain - 0.1.14 openai - 0.28.1
System Info