Skip to content

[web demo] Add thinking process for demo #492

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

wenhuanh
Copy link
Contributor

No description provided.

@wenhuanh wenhuanh changed the title + Add thinking process for demo [web demo] Add thinking process for demo Feb 25, 2025
chunk=""
chatbot[-1]["metadata"]= {"title": "💭思考过程"}
elif chunk == "</think>":
if len(chatbot[-1]["content"].strip()) == 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check whether "metadata" exists.

Signed-off-by: Wenhuan Huang <wenhuan.huang@intel.com>
@Duyi-Wang Duyi-Wang merged commit 1ecc7a5 into intel:main Feb 27, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants