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
42.11k stars 9.5k forks source link

[Request] support 01.ai global version #2919

Open ykangw opened 3 months ago

ykangw commented 3 months ago

🥰 Feature Description

Currently Lobe Chat only supports the Chinese version of 01.ai (零一万物 https://platform.lingyiwanwu.com/), but not the global/English version api (https://platform.01.ai/). Would you consider adding support for the global version?

🧐 Proposed Solution

Allow users to change the api link from api.lingyiwanwu.com to api.01.ai

📝 Additional Information

No response

lobehubbot commented 3 months ago

👀 @ykangw

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

sxjeru commented 3 months ago

As a temporary solution, you can consider modifying the following part.

https://github.com/lobehub/lobe-chat/blob/c39462888237c8836568a7aaec90b236d809d3be/src/libs/agent-runtime/zeroone/index.ts#L5