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.45k stars 9.98k forks source link

[Bug] When using Azure backend all chats names stay as "Default Topic" #4306

Closed bvajk closed 1 month ago

bvajk commented 1 month ago

📦 Environment

Docker

📌 Version

latest

💻 Operating System

Ubuntu

🌐 Browser

Firefox

🐛 Bug Description

When using Azure backend all chats names stay as "Default Topic" image

📷 Recurrence Steps

use azure backend and chat with ai

🚦 Expected Behavior

With openai backend the chat topic names were appropriate

📝 Additional Information

No response

lobehubbot commented 1 month ago

👀 @bvajk

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

Hey @bvajk! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together!

The issue you're experiencing with chat names staying as "Default Topic" when using the Azure backend might be related to the createTopic function. This function sets the default title using t('topic.defaultTitle', { ns: 'chat' }) [1].

To troubleshoot, you might want to check if the t function is correctly fetching the localized title for Azure. Additionally, ensure that any configuration settings related to topic naming are correctly set for the Azure backend. These settings can be found in the configuration files, such as setting.json, which includes options for automatic topic creation and naming models [2][3].

If the issue persists, reviewing the integration with Azure in the createAzureOpenai.ts file might provide further insights [4].

To continue talking to Dosu, mention @dosu.

bvajk commented 1 month ago

@Dosu the issue is not that I dont like the "default topic" name and want to change it to another static name. What I want is the regular functionality when a gpt-4o mini sets the titlte according to the conversation

dosubot[bot] commented 1 month ago

The issue you're experiencing with Azure not setting dynamic topic names might be due to differences in how the Azure backend handles topic naming compared to other providers like OpenAI. The createTopic function currently uses a default title, which might not be dynamically updated for Azure [1].

To achieve dynamic topic naming, you may need to ensure that the logic for generating dynamic titles is correctly implemented and configured for Azure. This might involve checking the integration code and any related configuration settings that handle topic naming for Azure. Unfortunately, specific details on dynamic naming for Azure weren't found in the available information, so reviewing the relevant parts of the codebase or configuration files might be necessary.

To continue talking to Dosu, mention @dosu.

arvinxx commented 1 month ago

duplicate of https://github.com/lobehub/lobe-chat/issues/3513

lobehubbot commented 1 month ago

✅ @bvajk

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