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
44.37k stars 9.94k forks source link

[Bug] 自动话题重命名在非 OpenAI 部署中默认工作不正常,需要手动选成别的 Azure 模型再选回才能正常工作 #3513

Closed YearsAhead closed 2 months ago

YearsAhead commented 2 months ago

📦 部署环境

Vercel

📌 软件版本

v1.11.7

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

我的部署中没有配置 OpenAI 本身的 Key,只使用 Azure OpenAI Service,新用户登录后默认线上的“系统助手”的模型都是正确的,但实际自动话题重命名的请求还是走 OpenAI 的,且后台会看到报错。直到去手动选成别的 Azure 模型再选回,这个自动话题重命名才会正常工作。

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

lobehubbot commented 2 months ago

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


📦 Deployment environment

Vercel

📌 Software version

v1.11.7

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

My deployment does not configure OpenAI's own Key and only uses Azure OpenAI Service. After a new user logs in, the default online "System Assistant" model is correct, but the actual automatic topic renaming request still goes through OpenAI, and You will see an error in the background. This automatic topic renaming will not work properly until you manually select another Azure model and then select it back.

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

lobehubbot commented 2 months ago

👀 @YearsAhead

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

arvinxx commented 2 months ago

可以通过 SYSTEM_AGENT 环境变量来设定默认助手,参考:

lobehubbot commented 2 months ago

✅ @YearsAhead

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

YearsAhead commented 2 months ago

@arvinxx 可以提供一下细节文档么?我只能尝试阅读这些 discussion 和 pr,而且不确定我按此写的是否正确——

SYSTEM_AGENT=topic=azure/gpt-4o-mini,translation=azure/gpt-4o-mini,agentMeta=azure/gpt-4o-mini,queryRewrite=azure/gpt-4o-mini
lobehubbot commented 2 months ago

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


@arvinxx Can you provide detailed documentation? I can only try to read these discussions and PRs, and I'm not sure if what I wrote here is correct -

SYSTEM_AGENT=topic=azure/gpt-4o-mini,translation=azure/gpt-4o-mini,agentMeta=azure/gpt-4o-mini,queryRewrite=azure/gpt-4o-mini
potato1949 commented 2 months ago

@YearsAhead 让你参考下我的。 DEFAULT_AGENT_CONFIG=model=deepseek-chat;provider=deepseek;chatConfig.enableHistoryCount=true;chatConfig.historyCount=5 SYSTEM_AGENT=topic=deepseek/deepseek-chat,translation=deepseek/deepseek-chat,agentMeta=deepseek/deepseek-chat

lobehubbot commented 2 months ago

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


@YearsAhead 让你参考下我的。 DEFAULT_AGENT_CONFIG=model=deepseek-chat;provider=deepseek;chatConfig.enableHistoryCount=true;chatConfig.historyCount=5 SYSTEM_AGENT=topic=deepseek/deepseek-chat,translation=deepseek/deepseek-chat,agentMeta=deepseek/deepseek-chat