ChatGPTNextWeb / ChatGPT-Next-Web

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

[Bug] 自定义模型和预设模型名称相同时,会被预设模型覆盖 #4754

Open Vickko opened 1 month ago

Vickko commented 1 month ago

Bug Description

我使用了第三方中转API,其给出的可用模型名称有很多与预设模型名称相同。这家的中转方式是,无论是谁家的模型,一律使用OpenAI API。因此,当我想要调用claude-3-opus-20240229时,不能使用预设的opus,只能输入自定义模型名。但当我在设置的自定义模型名输入框输入精确的claude-3-opus-20240229时,此选项不会出现。当在名称内随便加入或删除字母,对应选项出现。因此判断为自定义模型名被预设模型覆盖,这种情况下我无法使用这家的服务

Steps to Reproduce

  1. 设置-自定义模型名
  2. 输入 claude-3-haiku-20240307,claude-3-opus-20240229,claude-3-sonnet-20240229
  3. 展开模型下拉框,可以看到没有新模型
  4. 自定义模型名改为claude-3-haiku-2024030777,claude-3-opus-2024022999,claude-3-sonnet-2024022999
  5. 模型下拉框中,对应的模型名出现

Expected Behavior

输入名称与预设一致的自定义模型名时,其应当另外展示出来。另外也许应该提供自定义模型名与模型服务商自由绑定的能力

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 1 month ago

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


Title: [Bug] When the custom model and the preset model have the same name, they will be overwritten by the preset model.

GrayXu commented 1 month ago

模型名与模型提供商和模型访问方式绑定了。建议用one-api做次模型名重定向

Issues-translate-bot commented 1 month ago

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


The model name is bound to the model provider and model access method. It is recommended to use one-api for model name redirection

Vickko commented 1 month ago

模型名与模型提供商和模型访问方式绑定了。建议用one-api做次模型名重定向

是否可以在更改相对较小的情况下让自定义模型名与默认模型名即便重复也可以作为不同的选项出现?如果可以的话,我空了也许可以看看能不能改

Issues-translate-bot commented 1 month ago

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


The model name is bound to the model provider and model access method. It is recommended to use one-api for model name redirection

Is it possible, with relatively minor changes, to have a custom model name appear as different options than the default model name, even if they are duplicates? If possible, I might be able to see if I can change it if I have some free time.

fred-bf commented 1 month ago

We will introduce new api design in V3 to resolve this issue by implementing Model Manager.