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

[Feature Request]: 设置了只有 gpt-4o,但是会显示 2 个版本,分别是 azure 和 openai最近一次更新才发现的。 #4940

Closed
itcodes opened this issue Jul 7, 2024 · 15 comments
Labels
enhancement New feature or request

Comments

@itcodes
Copy link

itcodes commented Jul 7, 2024

Problem Description

CleanShot 2024-07-07 at 18 49 55@2x

Solution Description

原来没出现过这个问题,是最近更新才遇到。

Alternatives Considered

No response

Additional Context

No response

@itcodes itcodes added the enhancement New feature or request label Jul 7, 2024
@Issues-translate-bot
Copy link

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


Title: [Feature Request]: Only gpt-4o is set, but 2 versions will be displayed, which were discovered by the latest update of azure and openai.

Problem Description

CleanShot 2024-07-07 at 18 49 55@2x

Solution Description

This problem never occurred before, it was only encountered in the latest update.

Alternatives Considered

No response

Additional Context

No response

@itcodes
Copy link
Author

itcodes commented Jul 7, 2024

CleanShot 2024-07-07 at 18 47 50@2x

@Issues-translate-bot
Copy link

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


CleanShot 2024-07-07 at 18 47 50@2x

@madagastar
Copy link

用vercel部署,自动更新遇到了同样的问题。

@Issues-translate-bot
Copy link

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


Deployed with vercel, automatic update encountered the same problem.

@madagastar
Copy link

屏幕截图 2024-07-08 131236

@Issues-translate-bot
Copy link

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


Screenshot 2024-07-08 131236

@itcodes
Copy link
Author

itcodes commented Jul 8, 2024

用vercel部署,自动更新遇到了同样的问题。

对的。就是4930 那个 pr 引起的。下次不自动更新了。

@Issues-translate-bot
Copy link

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


Deploying with vercel, automatic update encountered the same problem.

Yes. It was caused by the PR of 4930.

@lloydzhou
Copy link
Contributor

#4945
fixed in #4953

@manjieqi
Copy link

这个重复的问题好像没有解决,vercel部署拉取的最新代码,-all,+gpt-3.5-turbo,+gpt-4,+gpt-4o,没有关于azure的环境变量,这样配置还是显示了azure的选项

@Issues-translate-bot
Copy link

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


This duplicate problem seems to have not been solved. The latest code pulled by vercel deployment, -all, +gpt-3.5-turbo, +gpt-4, +gpt-4o, does not have environment variables for azure. This configuration still shows azure. Options

@lloydzhou
Copy link
Contributor

这个重复的问题好像没有解决,vercel部署拉取的最新代码,-all,+gpt-3.5-turbo,+gpt-4,+gpt-4o,没有关于azure的环境变量,这样配置还是显示了azure的选项

  1. 新的版本支持将azure完全独立出来作为一个供应商。
  2. 这个逻辑上的更改并不能完全的向前兼容,这里配置模型的时候,如果多个供应商提供相同的模型,需要在CUSTOM_MODELS里面显示的标记供应商名称(这里不做兼容的原因是,用户配置了并保存在localStorage中的自定义模型并不能区分究竟是azure还是openai提供)
    以下是新的配置示例(readme中也有详细的说明):

-all,+gpt-3.5-turbo@openai,+gpt-4@openai,+gpt-4o@openai
-all,+gpt-3.5-turbo@azure={deploy_name} 这个配置会在模型列表展示一个“{deploy_name}(Azure)”的选项,发请求的时候使用的模型是gpt-3.5-turbo

@Issues-translate-bot
Copy link

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


This duplicate problem seems to have not been solved. The latest code pulled by vercel deployment, -all, +gpt-3.5-turbo, +gpt-4, +gpt-4o, does not have environment variables about azure. This configuration still displays azure. Options

  1. The new version supports Azure being completely independent as a supplier.
  2. This logical change is not completely forward compatible. When configuring the model here, if multiple suppliers provide the same model, the supplier name needs to be marked in CUSTOM_MODELS (the reason why compatibility is not done here is, The custom model configured by the user and saved in localStorage cannot distinguish whether it is provided by Azure or OpenAI)
    The following is a new configuration example (detailed instructions are also available in the readme):

-all,+gpt-3.5-turbo@openai,+gpt-4@openai,+gpt-4o@openai
-all,+gpt-3.5-turbo@azure={deploy_name} This configuration will display a "{deploy_name}(Azure)" option in the model list. The model used when making requests is gpt-3.5-turbo

@limour-blog
Copy link

写成下面这样就行

    environment:
      - CUSTOM_MODELS=-all,+gpt-3.5-turbo@openai,+gpt-4-turbo@openai,+gpt-4o@openai,+claude-3-haiku

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants