VSCode v0.8.63 - Model URL construction and header "accept" regressions for provider "openai" / apiType "azure" #3427
Labels
area:configuration
Relates to configuration options
ide:vscode
Relates specifically to VS Code extension
kind:bug
Indicates an unexpected problem or unintended behavior
priority:high
Indicates high priority
Before submitting your bug report
Relevant environment info
Description
Gpt4o url called is : https://[my-tenant].openai.azure.com/chat/completions
instead of https://[my-tenant].openai.azure.com**/openai/deployments/{engine}/chat/completions?api-version={api-version}**
as expected in the azure documentation https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#rest-api-versioning
Minor:
And 'accept' header was set with '/' in v0.8.61
and now (in v0.8.63) set with 'application/json' (which seems to be not suitable with the azure really returned content-type by azure which is 'text/event-stream')
To reproduce
Log output
The request failed with "FetchError": request to https://[my-tenant].openai.azure.com/chat/completions failed
The text was updated successfully, but these errors were encountered: