ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
77.19k stars 59.43k forks source link

[Bug] 无法提供OPENAI_API_KEY导致无法使用ChatGLM #5775

Open oplad opened 3 weeks ago

oplad commented 3 weeks ago

📦 部署方式

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不应该是必选项

Issues-translate-bot commented 3 weeks 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

lloydzhou commented 3 weeks ago

未复现

环境变量配置CHATGLM_API_KEY + CHATGLM_URL + DEFAULT_MODEL image 接口请求成功 image 对话返回正常 image

Issues-translate-bot commented 3 weeks ago

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 image Interface request successful image Conversation returns to normal image