ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
75.36k stars 58.88k forks source link

[Bug] 当我询问用的Azure的哪个模型时,messages会预设我选择的模型,伪造成那个版本 #4790

Closed hykfft closed 2 months ago

hykfft commented 4 months ago

Bug Description

I deployed the 3.5 model on Azure. After I configured gpt-4o, I selected gpt-4o and then asked which model it was. He would answer gpt-4o. This is obviously wrong. Print the log to see to the following parameters: messages = [ { "role": "system", "content": "\nYou are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2023-10\nCurrent model: gpt-4o\nCurrent time: Tue May 28 2024 10:19:10 GMT+0800 (中国标准时间)\nLatex inline: \\(x^2\\) \nLatex block: $$e=mc^2$$\n\n" }, { "role": "user", "content": "Which model are you, which version?" } ]

Steps to Reproduce

CUSTOM_MODELS=-all,+gpt-3.5-turbo,+gpt-4-0125-preview,+gpt-4o

Expected Behavior

I don't know where the default for "role": "system" comes from.

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 4 months ago

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


Title: [Bug] When I ask which Azure model to use, messages will default to the model I selected and fake it to that version.

QAbot-zh commented 4 months ago

可以设置关闭“注入系统级提示信息”

image

Issues-translate-bot commented 4 months ago

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


You can set to turn off "Inject system-level prompt information"

image