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

Allow custom callback_exception callable in ChatFeed #6047

Closed
ahuang11 opened this issue Dec 14, 2023 · 0 comments · Fixed by #7558
Closed

Allow custom callback_exception callable in ChatFeed #6047

ahuang11 opened this issue Dec 14, 2023 · 0 comments · Fixed by #7558
Labels
component: chat A label for chat type: enhancement Minor feature or improvement to an existing feature

Comments

@ahuang11
Copy link
Contributor

Users currently are limited to summary, verbose, ignore, and raise, which are all uncustomizable. Ideally, we should let users customize exception handling, e.g.

import panel as pn
pn.extension()

def callback_exception_handler(exc):
    ...

def callback(content, user, instance):
    1 / 0

pn.chat.ChatInterface(callback=callback, callback_exception=callback_exception_handler).servable()
@ahuang11 ahuang11 added the TRIAGE Default label for untriaged issues label Dec 14, 2023
@ahuang11 ahuang11 changed the title Allow custom callback_exception callable Allow custom callback_exception callable in ChatFeed Dec 14, 2023
@ahuang11 ahuang11 added type: enhancement Minor feature or improvement to an existing feature component: chat A label for chat and removed TRIAGE Default label for untriaged issues labels Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: chat A label for chat type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant