Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Default Model Set to 'gpt-3.5' but Option Displays ‘undefined’ #5039

Closed
DDDDD12138 opened this issue Jul 17, 2024 · 7 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@DDDDD12138
Copy link
Contributor

DDDDD12138 commented Jul 17, 2024

📦 Deployment Method

Docker, Other

📌 Version

v2.13.0

💻 Operating System

Windows, Ubuntu

📌 System Version

Windows11, Ubuntu22

🌐 Browser

Edge

📌 Browser Version

126.0.2592.87

🐛 Bug Description

Option Displays ‘undefined’

  • When using the DEFAULT_MODEL environment variable to set the default model to gpt-3.5, the model option displays as undefined. Despite this, the functionality remains operational.

option-undefined

The title of the automatic follow-up request is incorrect after the initial request. This issue occurs because the model is switched to gpt-3.5-turbo.

Successful initial request:

image

Failed title request:

image

📷 Recurrence Steps

  1. Set ENV
# Local Run
# .env file
DEFAULT_MODEL=gpt-3.5
# Docker Example
docker run -d -p 3000:3000 \
  -e OPENAI_API_KEY=sk-xxxxx \
  -e BASE_URL=https://xxxxxxxxx/ \
  -e DEFAULT_MODEL=gpt-3.5 \
  --name chatgpt-next-web \
  chatgpt-next-web:v2.13.0
  1. Run or deploy the application
  2. Access the application. Open a new browser, or incognito mode (simulate a new user, to prevent cache effects)

Open in StackBlitz

🚦 Expected Behavior

The DEFAULT_MODEL environment variable should be correctly utilized

📝 Additional Information

No response

@DDDDD12138 DDDDD12138 added the bug Something isn't working label Jul 17, 2024
@Dogtiti
Copy link
Member

Dogtiti commented Jul 17, 2024

have a try with gpt-3.5@openai

@Dogtiti Dogtiti self-assigned this Jul 17, 2024
@DDDDD12138
Copy link
Contributor Author

have a try with gpt-3.5@openai

This looks no different.

屏幕截图 2024-07-18 001332

By the way, gpt-3.5@openai seems like a custom model. Are you referring to the CUSTOM_MODELS environment variable?
Actually, DEFAULT_MODEL does not support this syntax.

@hmhuming
Copy link
Contributor

#4921 应该和这个是一个问题,好像是最近版本更新导致的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#4921 should be a problem with this, it seems to be caused by the recent version update

@DDDDD12138
Copy link
Contributor Author

@lloydzhou

So, this update is just for compatibility, right? It no longer shows undefined, but now the default selection is gpt-3.5-turbo. I don’t have access to gpt-3.5-turbo, it’s become unusable for me.

image

As a result, I tried using CUSTOM_MODELS. It works, but by default, it shows that I haven’t selected any model.

CUSTOM_MODELS=+gpt-3.5@openai

image
image

@Kosette
Copy link
Contributor

Kosette commented Jul 26, 2024

Yes. default model still doesn't work properly, though no () will be displayed.

@lloydzhou
Copy link
Contributor

@DDDDD12138

So, this update is just for compatibility, right? It no longer shows undefined, but now the default selection is gpt-3.5-turbo. I don’t have access to gpt-3.5-turbo, it’s become unusable for me.

  1. yes, fixed undefined bug.
  2. if you config defaultModel not in model list, this config will be ignore.
  3. why select gpt-3.5-turbo: the chat component will select model which defined in mask, if model not in available model list, just select the first one.

As a result, I tried using CUSTOM_MODELS. It works, but by default, it shows that I haven’t selected any model.

  1. gpt-3.5 is not a valid model name. so do not using this config.

if you config defaultModel not in model list, this config will be ignore.

  1. if you want to show custom model name, please see 如何使用v2.13.0的自定义模型功能(how to use 2.13.0 multi models) #5001 or README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants