Clean up `gr.ChatInterface` and fix API type discrepancy (#10185)
* changes
* add changeset
* changes
* clean
* changes
* format
* changes
* clean
* add
* changes
* add changeset
* mutate
* changes
* fix streaming
* test
* format
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* refactor
* Fixes
* fix
* revert
* revert
* revert
* revert
* changes
* revert^3
* format
* comment
* format
* fix example caching
* modify api test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>