Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 助手信息填写后聊天框不渲染 #5745

Open
Mgrsc opened this issue Feb 4, 2025 · 3 comments
Open

[Bug] 助手信息填写后聊天框不渲染 #5745

Mgrsc opened this issue Feb 4, 2025 · 3 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Mgrsc
Copy link

Mgrsc commented Feb 4, 2025

📦 部署环境

Docker

📌 软件版本

v1.50.2

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

助手信息填写完整,聊天框不渲染而且有莫名其妙换行

Image

Image

Image

Image

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@Mgrsc Mgrsc added the 🐛 Bug Something isn't working | 缺陷 label Feb 4, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Feb 4, 2025
@lobehubbot
Copy link
Member

👀 @Mgrsc

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

@lobehubbot
Copy link
Member

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


📦 deployment environment

Docker

📌 Software version

v1.50.2

💻 System environment

Windows

🌐 browser

Chrome

🐛 Problem description

The assistant information is complete, the chat box is not rendered, and there are somehow changing

! [Image] (https://github.com/user-attachments/assets/ed039248-60cc-4A82-b7F9-C6A4F07D84CA)))))

! [Image] (https://github.com/user-attachments/e2aa6703-71c4-45c5-A9D2-74C92AB0))

! [Image] (https://github.com/user-attachments/d12bb497-D59F-41E9-8987-30b45512F124))

! [Image] (https://github.com/user-attachments/assets/b848ce97-3e60-41eb-AE5F-3F2AA13748cb)))))

📷 Reapped steps

NO Response

🚦 expectation result

NO Response

📝 Supplement information

_NO Response

Copy link

dosubot bot commented Feb 4, 2025

The issue you're experiencing, where the chat interface does not render after filling in the assistant information, could be related to specific conditions or triggers in the codebase. The rendering of the chat interface is influenced by the properties of the extra object passed to the AssistantMessageExtra component. Here are some key points to consider:

  1. Rendering Conditions: The chat interface rendering is triggered by certain properties in the extra object, such as fromModel, tts, and translate. If these properties are not set correctly, it might prevent the interface from rendering [1].

  2. Text Formatting and Line Breaks: The system handles text formatting and line breaks using functions like processWithArtifact and normalizeThinkTags, which ensure proper formatting by removing unnecessary line breaks and ensuring tags are correctly closed [2].

  3. Error Handling: There are error handling mechanisms in place that log issues and provide debugging information. Ensure that the environment variables for debugging are set correctly to capture any errors during the rendering process [3].

To address the issue, you might want to check the configuration of the extra object and ensure that all necessary properties are correctly set. Additionally, verify that there are no errors being logged that could provide more insight into the problem.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants