lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
45.07k stars 10.16k forks source link

[Request] 恳求大佬给一个X.AI在VERCEL中部署的变量名称 #4764

Closed mingmenmama closed 3 days ago

mingmenmama commented 4 days ago

🥰 需求描述

恳求大佬给一个X.AI在VERCEL中部署的变量名称

🧐 解决方案

恳求大佬给一个X.AI在VERCEL中部署的变量名称

📝 补充信息

No response

lobehubbot commented 4 days ago

👀 @mingmenmama

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Please give me a variable name for X.AI to be deployed in VERCEL

🧐 Solution

Please give me a variable name for X.AI to be deployed in VERCEL

📝 Supplementary information

No response

SpeedupMaster commented 4 days ago

XAI_API_KEY

mingmenmama commented 4 days ago

XAI_API_KEY

API是对的,但是MODEL是空的 尝试过XAI_MODEL_LIST 但是并不正确

lobehubbot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


XAI_API_KEY

The API is correct, but the MODEL is empty Tried XAI_MODEL_LIST but not correct

SpeedupMaster commented 3 days ago

XAI_API_KEY

API是对的,但是MODEL是空的 尝试过XAI_MODEL_LIST 但是并不正确

之前docker部署直接设置API KEY就可以了,vercel 没试过,照理来说应该是一样的

lobehubbot commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


XAI_API_KEY

The API is correct, but the MODEL is empty. I tried XAI_MODEL_LIST but it is not correct.

In the past, it was enough to directly set the API KEY for docker deployment. I haven't tried vercel, so it should be the same.

arvinxx commented 3 days ago

XAI_MODEL_LIST 应该有效的才对, @hezhijie0327 帮忙看看?

lobehubbot commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


XAI_MODEL_LIST should be valid. @hezhijie0327 can you help?

hezhijie0327 commented 3 days ago

@arvinxx 这个 PR #4747

环境变量之前这里 #4734 没声明,然后稍微改了下,后续就直接从runtime读了

https://github.com/lobehub/lobe-chat/pull/4747/commits/5810203057f481f2ca9d2b554c2a220189fded52#diff-0fbc39fd0ef3d90d2c0db3d710364a69afce03cd86745f26fcae5716f962dc8a

hezhijie0327 commented 3 days ago

哦 看错了... Model List

lobehubbot commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Oh, I read it wrong... Model List

hezhijie0327 commented 3 days ago

vercel 没找到重启功能,在重新构建中,等个结果

PS: Docker 下正常 image

hezhijie0327 commented 3 days ago

@mingmenmama 变量更换后,重构下应该就好了,我试了下 ACCESS_CODE 逻辑也是一样的 image image

lobehubbot commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@mingmenmama After changing the variables, it should be fine after refactoring. I tried ACCESS_CODE and the logic is the same. image image