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] 1.44.2版本环境变量OPENAI_MODEL_LIST语法失效 #5342

Open
Yuyuyang opened this issue Jan 8, 2025 · 9 comments
Open

[Bug] 1.44.2版本环境变量OPENAI_MODEL_LIST语法失效 #5342

Yuyuyang opened this issue Jan 8, 2025 · 9 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Yuyuyang
Copy link

Yuyuyang commented Jan 8, 2025

📦 Environment

Vercel

📌 Version

1.44.2

💻 Operating System

Other

🌐 Browser

Firefox

🐛 Bug Description

vercel部署最新版本1.44.2,环境变量OPENAI_MODEL_LIST中的 模型定义语法规则 失效,仅有部分与官方模型名称一致的模型被成功识别,其他模型出现以下问题之一:

  1. 未设置的模型被自动启用(自动启用OpenAI o1-mini、GPT-4o 1120等官方模型)
  2. 环境变量中设置的模型未被启用(自定义名称的模型未被启用,如 doubao-pro-32k 未被启用)
  3. 环境变量中设置的自定义模型名称未生效(自定义名称的模型的名称显示为渠道模型名称,而不是根据 模型定义语法规则 设置的自定义名称,如 doubao-pro-32k 不展示为自定义的 Doubao pro)

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@Yuyuyang Yuyuyang added the 🐛 Bug Something isn't working | 缺陷 label Jan 8, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 8, 2025
@lobehubbot
Copy link
Member

👀 @Yuyuyang

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Jan 8, 2025

@Yuyuyang 你好!我是Dosu,一个能够帮助你解决Bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。

I found a similar closed issue that might be relevant to your problem. The issue titled "[Bug] 自定义模型无法完整显示" was closed with a pull request that fixed the problem of custom models not displaying correctly. You can view the issue here and the related pull request here [1].

Regarding the syntax for the OPENAI_MODEL_LIST environment variable, it should be a comma-separated list where you can use + to add a model, - to hide a model, and model_name=display_name to customize the display name of a model. For example:

+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo

This syntax allows for flexible management of model visibility and naming. If this syntax is not working as expected in version 1.44.2, it might be worth checking if there have been any recent changes or issues related to environment variable handling in the codebase [2][3][4].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@Yuyuyang
Copy link
Author

Yuyuyang commented Jan 8, 2025

补充信息:1.42.1版本此环境变量有效

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Supplementary information: This environment variable is valid in version 1.42.1

@Yuyuyang
Copy link
Author

Yuyuyang commented Jan 8, 2025

看上去应该属于 #5327 的一部分讨论

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Looks like it should be part of the discussion #5327

@bestZwei
Copy link

bestZwei commented Jan 8, 2025

点一下这里
image

@Yuyuyang
Copy link
Author

Yuyuyang commented Jan 9, 2025

点一下这里 image

不是一个问题,我获取列表成功,但是并没有按照预设的环境变量配置可用模型

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Click here ![image](https://private-user-images.githubusercontent.com/110226580/401178073-45f2ba1f-1f91-4cf2- 8322-8640873c428b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoi cmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzYzODk4NzQsIm5iZiI6MTczNjM4OTU3NCw icGF0aCI6Ii8xMTAyMjY1ODAvNDAxMTc4MDczLTQ1ZjJiYTFmLTFmOTEtNGNmMi04MzIyLTg2NDA4NzNjNDI4Yi5wbmc_WC1BbX otQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUw MTA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDEwOVQwMjI2MTRaJlgtQW16LUV4cGl yZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZjdlM2QxNGMwZTBiNTdkYTU0NWI3YjU1ODRkNjZjZDFkYzdjMzcxZjkzNDY0MDRkNz Y1OGRhNzA3ODkzYjFmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZTN15NKS_VZMhFbWYPrG6PYf7Xm2x-5xrN9cR0IgOuU)

Not a problem. I successfully obtained the list, but the available models were not configured according to the preset environment variables.

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
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants