Closed makeneko closed 1 year ago
I solved it myself. In the case of chatgpt 3.5 turbo on azure, I found that I just need to set the URL below.
"https://{our resource name}.openai.azure.com/openai/deployments/{our deployment name}/chat/completions?api-version=2023-03-15-preview"
I solved it myself. In the case of chatgpt 3.5 turbo on azure, I found that I just need to set the URL below.
"https://{our resource name}.openai.azure.com/openai/deployments/{our deployment name}/chat/completions?api-version=2023-03-15-preview"
Thank you very much, I have encountered the same problem.
Verify it's not a duplicate bug report
Describe the Bug
This bug is because the extension is accessing the wrong API URL.
According to microsoft's api reference, "Completions" is the same URL as "genieai.azure.url," but "Chat completions" is different from "genieai.azure.url." https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference
Completions:
Chat completions: (chat/ is in between)
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
"genieai.azure.url": "https://{our resource name}.openai.azure.com/openai/deployments/{our deployment name}/completions?api-version=2022-12-01"
Additional context
I can now respond to chats by rewriting "this. _ apiReverseProxyUrl" in extension.js to: