Skip to content

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

@DDDDD12138

Description

@DDDDD12138

📦 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions