gradio/js/chatbot
Freddy Boulton 4221290d84
Support Message API for chatbot and chatinterface (#8422)
* first commit

* Add code

* Tests + code

* lint

* Add code

* notebook

* add changeset

* type

* Add client test

* type

* Add code

* Chatbot type

* Add code

* test chatbot

* fix e2e test

* js tests

* Consolidate Error and Tool message. Allow Messages in postprocess

* Rename to messages

* fix tests

* notebook clean

* More tests and messages

* add changeset

* notebook

* client test

* Fix issues

* Chatbot docs

* add changeset

* Add image

* Add img tag

* Address comments

* Add code

* Revert chatinterface streaming change. Use title in metadata. Address pngwn comments

* Add code

* changelog highlight

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 11:08:06 +00:00
..
shared Support Message API for chatbot and chatinterface (#8422) 2024-07-10 11:08:06 +00:00
CHANGELOG.md chore: update versions (#8622) 2024-06-28 12:39:54 -04:00
Chatbot.stories.svelte Restore Markdown formatting for Chatbots, MarkdownCode (#7936) 2024-04-04 15:04:46 -07:00
Chatbot.test.ts Gradio components in gr.Chatbot() (#8131) 2024-06-14 14:43:35 +00:00
Index.svelte Support Message API for chatbot and chatinterface (#8422) 2024-07-10 11:08:06 +00:00
package.json chore: update versions (#8622) 2024-06-28 12:39:54 -04:00
README.md
types.ts Support Message API for chatbot and chatinterface (#8422) 2024-07-10 11:08:06 +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";