Skip to content
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]vocechat-chatbot-vercel部署后DEFAULT_MODEL变量不生效 #228

Open
VectorZhao opened this issue Jan 9, 2025 · 0 comments
Open

Comments

@VectorZhao
Copy link

描述问题
vocechat-chatbot-vercel 项目中设置 DEFAULT_MODEL=gpt-4o-mini 后,模型并没有生效,仍然使用的是 gpt-3.5-turbo

如何复现
复现步骤举例:

  1. 在 Vercel 中设置环境变量 DEFAULT_MODEL=gpt-4o-mini
  2. 群组中@bot聊天

预期结果
希望能够使用 gpt-4o-mini 模型进行对话,而不是 gpt-3.5-turbo

截图
image

环境信息

  • 操作系统: docker
  • 浏览器: google
  • 版本: 均为最新

附加信息
Vercel 日志如下:

Jan 09 09:41:56.76
POST
200
vocechat-chatbot-vercel-gray.vercel.app
/api/models
Jan 09 09:41:49.95
POST
200
vocechat-chatbot-vercel-gray.vercel.app
/api/models
Jan 09 09:40:17.06
POST
200
vocechat-chatbot-vercel-gray.vercel.app
/api/models
Jan 09 09:37:36.74
POST
500
vocechat-chatbot-vercel-gray.vercel.app
/api/chat
OpenAIError: 当前分组 svip 下对于模型 gpt-3.5-turbo 无可用渠道 (request id: 20250109093737162437275TkDeP4c9) at (utils/server/index.ts:72:12) at (pages/api/chat.ts:55:19) at (node_modules/next/dist/esm/server/web/adapter.js:160:0) { name: 'OpenAIError', type: 'new_api_error', param: undefined, code: undefined }
Jan 09 09:37:31.34
POST
200
vocechat-chatbot-vercel-gray.vercel.app
/api/models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant