ChatGPTNextWeb / ChatGPTNextWeb/NextChat

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

Open
#5,775 4 comments 0 reactions 0 assignees View on GitHub
invalid
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 📦 部署方式

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.