We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vercel
v2.15.8
Other
vercel
Chrome
131.0.6778.140
fetch("/api/config", { method: "post", body: null, headers: { ...getHeaders(), }, }) .then((res) => res.json()) .then((res) => { const defaultModel = res.defaultModel ?? ""; if (defaultModel !== "") { const [model, providerName] = getModelProvider(defaultModel); DEFAULT_CONFIG.modelConfig.model = model; DEFAULT_CONFIG.modelConfig.providerName = providerName as any; } return res; })
配置了环境变量DEFAULT_MODEL=gpt-3.5-turbo@OpenAi ,发现不生效。 看来源码,是有处理的。
最后定位到这里,发现是接口返回数据并没有写入。所以取数据还是默认值gpt-4o-mini
No response
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] The environment variable DEFAULT_MODEL configuration is invalid
Sorry, something went wrong.
No branches or pull requests
📦 Deployment Method
Vercel
📌 Version
v2.15.8
💻 Operating System
Other
📌 System Version
vercel
🌐 Browser
Chrome
📌 Browser Version
131.0.6778.140
🐛 Bug Description
配置了环境变量DEFAULT_MODEL=gpt-3.5-turbo@OpenAi ,发现不生效。
看来源码,是有处理的。
最后定位到这里,发现是接口返回数据并没有写入。所以取数据还是默认值gpt-4o-mini
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: