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

Propagate serialize_kwargs to ChatMessage #7146

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

ahuang11
Copy link
Contributor

Closes #7143

import panel as pn

pn.extension()

ci = pn.chat.ChatInterface()
ci.send("Hello")
ci.add_step("Hello", "World")
ci.serialize(
    prefix_with_container_label=False,
    prefix_with_viewable_label=False
)
[{'role': 'user', 'content': 'Hello'},
 {'role': 'user', 'content': '((Hello))'}]

@ahuang11 ahuang11 requested a review from philippjfr August 14, 2024 19:00
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.19%. Comparing base (0b76e99) to head (1d6f4cc).
Report is 2 commits behind head on main.

Files Patch % Lines
panel/chat/interface.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7146      +/-   ##
==========================================
- Coverage   82.19%   82.19%   -0.01%     
==========================================
  Files         327      327              
  Lines       48970    48974       +4     
==========================================
+ Hits        40253    40255       +2     
- Misses       8717     8719       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philippjfr philippjfr merged commit d1754ae into main Aug 15, 2024
14 of 16 checks passed
@philippjfr philippjfr deleted the serialize_kwargs branch August 15, 2024 07:34
ahuang11 added a commit that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interface.serialize() should be able to pass prefix_with_viewable_label
2 participants