-
Notifications
You must be signed in to change notification settings - Fork 58.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Azure api 配置不生效 #4796
Comments
Title: [Bug] Azure api configuration does not take effect |
Have you tried specifying the deployment name with a fixed value instead of e.g.
Then for |
使用固定值的AZURE_URL是可以正常使用的,只有使用{deploy-name} 的方式会报错 |
Using a fixed value of AZURE_URL can be used normally. Only using {deploy-name} will report an error. |
目前支持AZURE_OPENAI_MODEL_MAPPER这个参数吗,我看只是有人提了个PR |
Is the parameter AZURE_OPENAI_MODEL_MAPPER currently supported? I think someone just mentioned a PR. |
可以参考这个pr #4930 的实现:
|
You can refer to the implementation of this PR #4930:
|
Bug Description
使用了通用配置https://XXXX/openai/deployments/{deploy-name}不生效。不会自动替换{deploy-name}字段。请帮忙看看是什么地方配置错误。
docker run -d -p 4000:3000 -e "AZURE_URL=https://XXXXX.openai.azure.com/openai/deployments/{deploy-name}" -e AZURE_API_KEY=XXXXX -e AZURE_API_VERSION=2024-02-15-preview -e AZURE_OPENAI_MODEL_MAPPER="gpt-3.5-turbo=gpt-35-turbo" -e CUSTOM_MODELS=-all,+gpt-4o,+gpt-35-turbo yidadaa/chatgpt-next-web
Steps to Reproduce
更新了app到最新版,将部署名改成和模型名字一致,也加入过AZURE_OPENAI_MODEL_MAPPER,都无法生效。
Expected Behavior
请帮忙查看问题所在,谢谢
Screenshots
Deployment Method
Desktop OS
window11
Desktop Browser
chrome
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
The text was updated successfully, but these errors were encountered: