ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] Unable to generate chat title when `CUSTOM_MODELS` removed `gpt-3.5-turbo`

Open
#3,621 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

# Describe the bug
When `CUSTOM_MODELS` removed `gpt-3.5-turbo`,
Chat title will never be generated.

# To Reproduce
Steps to reproduce the behavior:
1. Set env `CUSTOM_MODELS=-gpt-3.5-turbo`
2. Deploy
3. Create new chat
4. Ask something
5. GPT will response successfully
6. but chat title will never be generated

# Expected behavior
Even if `gpt-3.5-turbo` disabled, the chat title should always be generated.

# Screenshots
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/14261588/62727567-6478-4e2f-9fd6-14914768c567)
POST - /api/openai/v1/chat/completions
HTTP Status: 403
```json
{
"error": true,
"message": "you are not allowed to use gpt-3.5-turbo model"
}
```
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/14261588/6701ed0b-50f5-471f-8d5e-89d26c92fe28)
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/14261588/81289111-0ac2-49dc-83d7-0d6014d88e59)

# Deployment
- [ ] Docker
- [x] Vercel
- [ ] Server

**Desktop (please complete the following information):**
- OS: Any
- Browser: Any
- Version: Any

**Smartphone (please complete the following information):**
- Device: Any
- OS: Any
- Browser: Any
- Version: Any

**Additional Logs**
Add any logs about the problem here.

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.