ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] DeepSeek related environment not work

Open
#6,048 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

v2.15.8

### πŸ’» Operating System

Other Linux

### πŸ“Œ System Version

Alpine Linux 3.20

### 🌐 Browser

Chrome

### πŸ“Œ Browser Version

131.0.6778.205

### πŸ› Bug Description

I deployed nextweb via Docker Compose. I want the service to work by default through the deepseek model without relying on any configuration in the front-end page. This is my original compose file.
```
version: "3"
services:
chatgpt-web:
image: yidadaa/chatgpt-next-web:latest
restart: always
ports:
- "127.0.0.1:3000:3000"
environment:
- CODE=xxxxxx
- CUSTOM_MODELS=-all,+deepseek-chat@DeepSeek
- DEFAULT_MODEL=deepseek-chat
- DEEPSEEK_URL=https://api.deepseek.com
- DEEPSEEK_API_KEY=sk-xxxx
```
But it didn't work. seeing the logs, nextweb still request the apis of openai instead of deepseek.
Then I update my compose file like this, adding **OPENAI_API_KEY** and **BASE_URL** configs, pretend to request custom openai url with specified model *deepseek-chat*, and it works well.
```
version: "3"
services:
chatgpt-web:
image: yidadaa/chatgpt-next-web:latest
restart: always
ports:
- "127.0.0.1:3000:3000"
environment:
- OPENAI_API_KEY=sk-xxxx
- BASE_URL=https://api.deepseek.com
- CODE=xxxxxx
- CUSTOM_MODELS=-all,+deepseek-chat@DeepSeek
- DEFAULT_MODEL=deepseek-chat
- DEEPSEEK_URL=https://api.deepseek.com
- DEEPSEEK_API_KEY=sk-xxxx
```

I think there is something wrong with **DEEPSEEK_URL** and **DEEPSEEK_API_KEY** config items, or my misconfig, plz let me know the truth, thank you!

### πŸ“· 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.