Repository navigation
APIConnectionError on Python 3.11.9, SK 1.2.0 #9274
|
Hi everyone, I need help on this one. I have a similar C# codes that works just fine using the same settings and Managed Identity. Initially I thought MI was the culprit but switching to key does not help either. Here is the entire block. I have applied the trick on using base_url instead of of endpoint from another thread discussing same error. Not doing so results in 404. |
Replies: 2 comments 5 replies
|
Hello, swarmttied (@giobb), thanks for reaching out. You'll want to configure your As part of initializing the AzureChatCompletion service, we create the
|
|
Evan Mattson (@moonbox3) Thanks for the time and suggestion. Using endpoint (without /openai) with ad_token or api_key but still I get the same issue. Could this be firewall, other network issues? |



Hello, swarmttied (@giobb), thanks for reaching out.
You'll want to configure your
endpointto be:https://certain-ep.openai.azure.com/(without the/openai/). Additionally, please use theendpointkeyword argument, instead of thebase_urlkeyword argument. Thebase_urlkeyword argument is assuming you're passing in thebase_urllike:https://certain-ep.openai.azure.com/openai/deployments/gpt-4o.As part of initializing the AzureChatCompletion service, we create the
base_urlfrom theendpointand thechat_deployment_namesuch as:https://certain-ep.openai.azure.com/openai/deployments/gpt-4o