GPT-4o on Azure giving 'Model not supported' Error
supernitin opened this issue · comments
I'm trying to use GPT-4o on Azure as my LLM
llm = AzureChatOpenAI( #azure_endpoint=os.environ.get("AZURE_OPENAI_ENDPOINT"), #api_key=os.environ.get("AZURE_OPENAI_API_KEY"), api_version="2024-02-01", #azure_deployment=os.environ.get("AZURE_OPENAI_DEPLOYMENT"), model="gpt-4o", model_version="2024-05-13", max_tokens=4000, )
However, I get 'model not supported' when attempting to do so:
KeyError: 'Model not supported'
thank you, we will fix it
Had a similar issue, it happened to be that API version has to be 2024-02-01, not the model version and
the chat deployment variable had a wrong value and wasn't recognized by default
Wrong name: AZURE_OPENAI_CHAT_DEPLOYMENT_NAME
Correct name: CHAT_COMPLETIONS_DEPLOYMENT_NAME
Please can you fix it?
hi, now we added it