Open oplad opened 2 hours ago
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] Unable to provide OPENAI_API_KEY, resulting in the inability to use ChatGLM
未复现
环境变量配置CHATGLM_API_KEY + CHATGLM_URL + DEFAULT_MODEL 接口请求成功 对话返回正常
Bot detected the issue body's language is not English, translate it automatically.
Not reappeared
Environment variable configuration CHATGLM_API_KEY + CHATGLM_URL + DEFAULT_MODEL Interface request successful Conversation returns to normal
📦 部署方式
Vercel
📌 软件版本
v2.15.7
💻 系统环境
Windows
📌 系统版本
Win10
🌐 浏览器
Chrome
📌 浏览器版本
Google Chrome Version 130.0.6723.93 (Official Build) (64-bit)
🐛 问题描述
因众所周知的源因无法提供OPENAI_API_KEY,导致无法使用ChatGLM
ChatGLM的环境参数已配置:
CHATGLM_API_KEY 96***.**
CHATGLM_URL https://open.bigmodel.cn
DEFAULT_MODEL glm-4-plus
HIDE_USER_API_KEY 1
DISABLE_GPT4 1
📷 复现步骤
"error": { "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": null
🚦 期望结果
OPENAI_API_KEY不应该是必选项,应该兼容各家API
📝 补充信息
OPENAI_API_KEY不应该是必选项