Is the Azure regional endpoint format supported? #5995
-
I'm using CrewAI with a Azure OpenAI endpoint. Different from any documentation in existence (including Azure's) I get the Azure endpoints created in regional format, like this: As Azure moves everything to cognitive, there's no way for me to create an endpoint in the old resource format everybody keeps mentioning. And with this regional one, I get the following error:
I'm using CrewAI code from the howtos so that cannot be, but what do I know... CrewAI folks believe the endpoint format is not supported, and the LangChain bot also commented to check the status here.
PS: litellm==1.48.2 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
@sorin-costea this should already work - the error you're seeing looks like your api_base passed to LiteLLM is None
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your time! |
Beta Was this translation helpful? Give feedback.
-
If I use the CrewAI's direct LLM initialization, it works fine. So I assume the problem is in Langchain's AzureChatOpenAI, thus probably it's safe to close this issue. Working code:
|
Beta Was this translation helpful? Give feedback.
-
@sglemmestad as I'm using CrewAI, in its Agent initialization:
|
Beta Was this translation helpful? Give feedback.
@sorin-costea this should already work - the error you're seeing looks like your api_base passed to LiteLLM is None