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] 新版本的DEFAULT_MODEL怎么设置呢? #5115

Closed
AndyLin2020 opened this issue Jul 27, 2024 · 17 comments
Closed

[Bug] 新版本的DEFAULT_MODEL怎么设置呢? #5115

AndyLin2020 opened this issue Jul 27, 2024 · 17 comments
Assignees
Labels
bug Something isn't working

Comments

@AndyLin2020
Copy link

📦 部署方式

Docker

📌 软件版本

V2.14

💻 系统环境

Windows

📌 系统版本

Win 11

🌐 浏览器

Chrome

📌 浏览器版本

最新

🐛 问题描述

原来V2.12版本设置默认核心只需在Docker部署时加上:-e DEFAULT_MODEL=gemini-1.5-pro-latest,V2.13以后就不行了,另外设置以下格式也不行:-e DEFAULT_MODEL=gemini-1.5-pro-latest@Google ,默认核心一直是:gpt-3.5-turbo(OpenAi)

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@AndyLin2020 AndyLin2020 added the bug Something isn't working label Jul 27, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] How to set the new version of DEFAULT_MODEL?

📦 Deployment method

Docker

📌 Software version

V2.14

💻 System environment

Windows

📌 System version

Win 11

🌐 Browser

Chrome

📌 Browser version

up to date

🐛 Problem description

It turns out that to set the default core in version V2.12, you only need to add: -e DEFAULT_MODEL=gemini-1.5-pro-latest when deploying Docker. This will not work after V2.13. In addition, setting the following format will not work: -e DEFAULT_MODEL=gemini- 1.5-pro-latest@Google, the default core has always been: gpt-3.5-turbo (OpenAi)

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

@Oatu4396
Copy link

新版本的./app/config/server.ts中有这样一段代码:
image
推测是这个导致的,但不知道作者加这段无视gpt-4的代码的意义

@Issues-translate-bot
Copy link

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


There is this piece of code in the new version of ./app/config/server.ts:
image
It is speculated that this is the cause, but I don’t know the meaning of the author adding this code that ignores gpt-4.

@DDDDD12138
Copy link
Contributor

新版本的./app/config/server.ts中有这样一段代码: image 推测是这个导致的,但不知道作者加这段无视gpt-4的代码的意义

只有添加了 DISABLE_GPT4 环境变量才会使用到这部分的逻辑,用来排除所有 GPT4 的模型,似乎和这个ISSUES没有关系
image

@Issues-translate-bot
Copy link

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


The new version of ./app/config/server.ts contains this piece of code: image It is speculated that this is the cause, but I don’t know the meaning of the author adding this code that ignores gpt-4.

This part of the logic will only be used if the DISABLE_GPT4 environment variable is added to exclude all GPT4 models. It seems to have nothing to do with this ISSUES.
image

@MapleBay
Copy link

image
我使用Vercel进行部署的也出现了这个问题,设置为4o-mini却始终没有生效,重新部署过多次也仍然无效

@Issues-translate-bot
Copy link

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


image
I also had this problem when I deployed using Vercel. It was set to 4o-mini but it never took effect. I redeployed it many times and it still didn't work.

@AndyLin2020
Copy link
Author

-e DEFAULT_MODEL=gemini-1.5-pro-latest@google
以上参数设置可以使用,不过设置中的默认模型还是gpt-3.5-turbo

@Issues-translate-bot
Copy link

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


-e DEFAULT_MODEL=gemini-1.5-pro-latest@google
The above parameter settings can be used, but the default model in the settings is still gpt-3.5-turbo

@wang20150419
Copy link

最新版本,v2.14.2 一样,设置 DEFAULT_MODEL 无效。

@Issues-translate-bot
Copy link

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


In the latest version, v2.14.2, setting DEFAULT_MODEL has no effect.

@Tasselmi
Copy link

Tasselmi commented Sep 3, 2024

我的docker部署的也是一样的,设置 DEFAULT_MODEL 无效,还是显示的gpt-3.5,求修复

@Issues-translate-bot
Copy link

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


My docker deployment is the same. Setting DEFAULT_MODEL is invalid, and it still displays gpt-3.5. Please fix it.

@whistle003
Copy link

这个确实是bug,我设置的DEFAULT_MODEL也无法生效

@Issues-translate-bot
Copy link

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


This is indeed a bug, and the DEFAULT_MODEL I set does not take effect.

@Dogtiti
Copy link
Member

Dogtiti commented Sep 27, 2024

fixed
use as DEFAULT_MODEL=gemini-1.5-pro-latest@Google

@Issues-translate-bot
Copy link

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


fixed

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
None yet
Development

No branches or pull requests

10 participants