Closed jony4 closed 1 year ago
Actually, I have deployed the OpenAI model and service already.
Perhaps this parameter was omitted.
reference -> https://github.com/sashabaranov/go-openai/blob/master/config.go#L60
I was facing the same error, I fixed it by setting the following environment var for azure
DEFAULT_MODEL | gpt-3.5-turbo | The default model to use on new conversations, for Azure use gpt-35-turbo
---gpt-3.5-trubo
+++gpt-35-turbo
Azure should use gpt-35-turbo
no, this is deployment id is from here: https://learn.microsoft.com/zh-cn/azure/cognitive-services/openai/reference#completions which input by yourself
I just test with "gpt35", and no more error message. lol
no, this is deployment id is from here: https://learn.microsoft.com/zh-cn/azure/cognitive-services/openai/reference#completions which input by yourself
![]()
I just test with "gpt35", and no more error message. lol
You're right, I have renamed the deployment name same as the model name lol...
@jony4 @mckaywrigley PR #499 isn't required and adds complexity. The existing solution automatically translates gpt-35-turbo
/ gpt-4
/ gpt-4-32k
to your deployment name. See https://github.com/mckaywrigley/chatbot-ui/blob/main/pages/api/models.ts#L53.
If you opened the web UI before setting DEFAULT_MODEL=gpt-35-turbo
it may have cached gpt-3.5-turbo
in your conversations. Exporting your data, fixing the JSON file, clearing your cache and re-importing data will probably solve it (or just clear your cache if you don't want to keep conversations). The exported JSON should have:
// ...
"model": {
"id": "<deployment_name>",
// ...
},
// ...
the /api/models api returns this response
[{"id":"gpt35","name":"GPT-3.5"}]
but seems the response's id field isn't used by index.ts#L34 correctly.
/openai/deployments/gpt35/chat/completions?api-version=
will works.
@jony4 I think you may want to shut that down, at the moment anyone can make calls to Azure OpenAI using your keys (so you will get billed for it).
Removing the period from 3.5 fixed it on my end too. Thanks random github issue!