Chat bug fix #40
Reference in New Issue
Block a user
Delete Branch "chat_bug_fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
quickfix for regression caused by chat fixes
Pull Request Overview
This PR fixes a regression in the chat interface by correcting return type annotations and cleaning up commented-out code. The changes ensure proper type hints for Gradio interface methods that return tuple values.
Key Changes:
gradio_respondmethodgradio_loadandgradio_clearmethodsTip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
The return type annotation is incorrect. The method returns
[], []which are empty lists of tuples (matching the history format), not lists of strings. The return type should betuple[list[tuple[str, str]], list[tuple[str, str]]]to match the actual return value and be consistent withgradio_load.