ChatGPTNextWeb/ChatGPT-Next-Web

[Bug] The environment variable DEFAULT_MODEL configuration is invalid

Opened this issue ยท 1 comments

๐Ÿ“ฆ 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 ๏ผŒๅ‘็Žฐไธ็”Ÿๆ•ˆใ€‚
็œ‹ๆฅๆบ็ ๏ผŒๆ˜ฏๆœ‰ๅค„็†็š„ใ€‚
8039eb92588be0c54427f4377e68a52e

ๆœ€ๅŽๅฎšไฝๅˆฐ่ฟ™้‡Œ๏ผŒๅ‘็Žฐๆ˜ฏๆŽฅๅฃ่ฟ”ๅ›žๆ•ฐๆฎๅนถๆฒกๆœ‰ๅ†™ๅ…ฅใ€‚ๆ‰€ไปฅๅ–ๆ•ฐๆฎ่ฟ˜ๆ˜ฏ้ป˜่ฎคๅ€ผgpt-4o-mini

๐Ÿ“ท Recurrence Steps

No response

๐Ÿšฆ Expected Behavior

No response

๐Ÿ“ Additional Information

No response

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


Title: [Bug] The environment variable DEFAULT_MODEL configuration is invalid