lobehub / lobe-chat

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

[Bug] 只配置了spark 4.0 api, #4884

Closed FormatToday closed 7 hours ago

FormatToday commented 10 hours ago

📦 部署环境

Docker

📌 软件版本

latest

💻 系统环境

Other Linux

🌐 浏览器

Chrome

🐛 问题描述

只配置了星火4.0的key,随便聊聊最上面显示的也是4.0Ultra,但是聊天却好像还是走的openAI。 image 环境变量只配置了下面这几个 image

📷 复现步骤

No response

🚦 期望结果

随便聊聊 也使用4.0Ultra回复。

📝 补充信息

No response

lobehubbot commented 10 hours ago

👀 @FormatToday

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

dosubot[bot] commented 9 hours ago

@FormatToday 你好!我是Dosu,一个可以帮助您解决问题,回答疑问,并成为贡献者的机器人。我将在等待人类维护者的过程中帮助您。

I found a similar discussion that might be relevant to your issue. In the discussion titled "新版本带上openAI的key无法使用," it was suggested to manually select the model or configure the DEFAULT_AGENT_CONFIG variable. The default provider is OpenAI, and you might need to change it to another provider, such as provider=azure [1].

For your specific issue, ensure that the DEFAULT_AGENT_CONFIG is correctly set to use the spark provider instead of OpenAI. You can check the possible values for the provider setting, which include spark, among others [2]. Make sure that the SPARK_API_KEY is correctly configured and that there are no conflicting settings that might default to OpenAI.

To continue talking to Dosu, mention @dosu.

arvinxx commented 7 hours ago

default agent config 需要配置 provider

lobehubbot commented 7 hours ago

✅ @FormatToday

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 7 hours ago

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


default agent config requires configuration provider