Commit Graph

3 Commits

Author SHA1 Message Date
Abubakar Abid
be40307d1d
Add support for thinking LLMs directly in gr.ChatInterface (#10305)
* ungroup thoughts from messages

* rename messagebox to thought

* refactor

* * add metadata typing
* group thoughts when nested

* tweaks

* tweak

* add changeset

* fix expanded rotation

* border radius

* update thought design

* move spinner

* prevent circular reference

* revert border removal

* css tweaks

* border tweak

* move chevron to the left

* tweak nesting logic

* thought group spacing

* update run.py

* icon changes

* format

* add changeset

* add nested thought demo

* changes

* changes

* changes

* add demo

* docs

* guide

* refactor styles and clean up logic

* revert demo change and and deeper nested thought to demo

* add optional duration to message types

* add nested thoughts story

* format

* guide

* change dropdown icon button

* remove requirement for id's in nested thoughts

* support markdown in thought title

* get thought content in copied value

* add funcs to utils

* move is_all_text

* remove comment

* notebook

* change bot padding

* changes

* changes

* changes

* panel css fix

* changes

* changes

* changes

* changes

* tweak thought content opacity

* more changes

* add changeset

* changes

* restore

* changes

* changes

* revert everythign

* revert everythign

* revert

* changes

* revert

* make changes to demo

* notebooks

* more docs

* format

* changes

* changes

* update demo

* fix typing issues

* chatbot

* document chatmessage helper class

* add changeset

* changes

* format

* docs

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-01-10 00:06:07 +00:00
Abubakar Abid
a95f8ef3ee
Add support for returning multiple messages from gr.ChatInterface chat function (#10197)
* multiple messages

* filepath

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add test

* add changeset

* changes

* add a lot more tests

* changes

* chat

* change

* changes

* chat

* changes

* change demo

* remove test

* changes

* format

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-17 14:46:10 -05:00
Abubakar Abid
369a44e7f8
Add ability to provide preset response options in gr.Chatbot / gr.ChatInterface (#9989)
* options

* add changeset

* list

* types

* add changeset

* types

* docs

* changes

* more docs

* chatbot

* changes

* changes

* changes

* format

* notebooks

* typedict

* docs

* console logs

* docs

* docs

* styling

* docs

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* restore

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-22 00:19:52 +00:00