Skip to content

Commit 2611f5c

Browse files
committed
docs(sample): 优化聊天框显示布局并添加演示示例图片- 在 Application.cpp 中调整了 botAnswer 的显示位置,使其与输入框在同一行
- 在 README.md 中添加了项目演示示例图片,以直观展示项目功能
1 parent 2466896 commit 2611f5c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ _✨基于各种LLM的聊天机器人,支持多种语言,支持系统操作
2424
<img src="https://img.shields.io/github/forks/NGLSG/ChatBot.svg" alt="forks">
2525
</p>
2626

27+
Demo示例:![img.png](img.png)
28+
2729
# 依赖项
2830

2931
ChatBot项目需要以下依赖项:

sample/Application.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ void Application::RenderChatBox() {
407407
ImGui::PopID();
408408

409409
// Display the bot's answer
410+
ImGui::SameLine();
410411
DisplayInputText(botAnswer);
411412
// 加载纹理的线程
412413
if (!botAnswer.image.empty()) {

0 commit comments

Comments
 (0)