[Bug] The environment variable DEFAULT_MODEL configuration is invalid
Opened this issue ยท 1 comments
chiachan163 commented
๐ฆ Deployment Method
Vercel
๐ Version
v2.15.8
๐ป Operating System
Other
๐ System Version
vercel
๐ Browser
Chrome
๐ Browser Version
131.0.6778.140
๐ Bug Description
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
๐ท Recurrence Steps
No response
๐ฆ Expected Behavior
No response
๐ Additional Information
No response
Issues-translate-bot commented
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] The environment variable DEFAULT_MODEL configuration is invalid