lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
34.92k stars 8.19k forks source link

[Request] Qwen/通义千问希望支持国际版Endpoint #3099

Open RyanLookchard opened 1 week ago

RyanLookchard commented 1 week ago

🥰 需求描述

现在支持的国内版的api接口 "https://dashscope.aliyuncs.com/compatible-mode/v1", 国际版的api接口是 'https://dashscope-intl.aliyuncs.com/api/v1'

详情可参考国际版文档:https://www.alibabacloud.com/help/en/model-studio/developer-reference/qwen-model-api-details?spm=a2c63.p38356.0.0.33b95aeeSzbNee

🧐 解决方案

希望可以让用户自由选择哪个版本 或者可以自定义api url

📝 补充信息

No response

lobehubbot commented 1 week ago

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


🥰 Description of requirements

The domestic version of the API interface currently supported is "https://dashscope.aliyuncs.com/compatible-mode/v1", The international version of the api interface is 'https://dashscope-intl.aliyuncs.com/api/v1'

For details, please refer to the international version documentation: https://www.alibabacloud.com/help/en/model-studio/developer-reference/qwen-model-api-details?spm=a2c63.p38356.0.0.33b95aeeSzbNee

🧐 Solution

I hope users can freely choose which version Or you can customize the api url

📝 Supplementary information

No response

lobehubbot commented 1 week ago

👀 @RyanLookchard

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 1 week ago

作为临时方案,可在此处变更 api endpoint.

https://github.com/lobehub/lobe-chat/blob/9ea871105ee0a9eed0173807453f9c000f77b026/src/libs/agent-runtime/qwen/index.ts#L7

RyanLookchard commented 1 week ago

作为临时方案,可在此处变更 api endpoint.

https://github.com/lobehub/lobe-chat/blob/9ea871105ee0a9eed0173807453f9c000f77b026/src/libs/agent-runtime/qwen/index.ts#L7

如果是docker部署的话如何修改呢?

RubuJam commented 6 days ago

如果是docker部署的话如何修改呢?

修改源代码后,自行编译docker镜像

lobehubbot commented 6 days ago

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


How to modify it if it is deployed with docker?

After modifying the source code, compile the docker image yourself