gradio/js/chatbot
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
..
shared Add ability to provide preset response options in gr.Chatbot / gr.ChatInterface (#9989) 2024-11-22 00:19:52 +00:00
CHANGELOG.md chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
Chatbot.stories.svelte Add allow_file_downloads param to allow downloading image/video/audio media in chatbot (#9905) 2024-11-15 15:50:32 -08:00
Chatbot.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
Index.svelte Add ability to provide preset response options in gr.Chatbot / gr.ChatInterface (#9989) 2024-11-22 00:19:52 +00:00
package.json chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
README.md
types.ts Add ability to provide preset response options in gr.Chatbot / gr.ChatInterface (#9989) 2024-11-22 00:19:52 +00:00

@gradio/button

<script>
	import { BaseChatBot } from "@gradio/chatbot";
</script>

BaseChatBot

	export let value:
		| [
				string | { file: FileData; alt_text: string | null } | null,
				string | { file: FileData; alt_text: string | null } | null
		  ][]
		| null;
	let old_value:
		| [
				string | { file: FileData; alt_text: string | null } | null,
				string | { file: FileData; alt_text: string | null } | null
		  ][]
		| null = null;
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[];
	export let pending_message = false;
	export let selectable = false;
	export let likeable = false;
	export let show_share_button = false;
	export let rtl = false;
	export let show_copy_button = false;
	export let avatar_images: [string | null, string | null] = [null, null];
	export let sanitize_html = true;
	export let bubble_full_width = true;
	export let render_markdown = true;
	export let line_breaks = true;
	export let root: string;
	export let root_url: null | string;
	export let i18n: I18nFormatter;
	export let layout: "bubble" | "panel" = "bubble";