ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] access code导致Azure模型不可用

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

Description

### 📦 Deployment Method

Docker

### 📌 Version

2.5.13

### 💻 Operating System

Ubuntu

### 📌 System Version

20.2

### 🌐 Browser

Firefox

### 📌 Browser Version

130.0.1

### 🐛 Bug Description

启动docker时,如果指定了```-e CODE='xxx'```,Azure模型将不可用。
复现步骤:
1.启动docker:
```
docker run -d \
-e OPENAI_API_KEY='xxx' \
-e BASE_URL='xxx' \
-e AZURE_URL=‘https://xxx’ \
-e AZURE_API_KEY='xxx' \
-e AZURE_API_VERSION='xxx' \
-e CODE='xxx'
-e CUSTOM_MODELS='+AzureGPT-3.5@Azure=gpt-3.5-turbo'
webnextimage:latest
```
2.打开网页,提示输入access code

3.输入正确access code

4.OpenAI 模型服务可用,Azure模型不可用,提示access code错误。

5.启动docker时不设置CODE变量,Azure模型可正常生成内容。

### 📷 Recurrence Steps

_No response_

### 🚦 Expected Behavior

_No response_

### 📝 Additional Information

_No response_

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.