Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document additional helper classes for gr.Chatbot #10346

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Jan 13, 2025

Documents OptionDict and MetadataDict, which are referenced in the docs for gr.Chatbot/gr.ChatInterface

@abidlabs abidlabs requested a review from aliabd January 13, 2025 17:51
@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Jan 13, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
Storybook ready! Storybook preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/0f3362108808cd37b1614c2eb4b10997335d0eec/gradio-5.12.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@0f3362108808cd37b1614c2eb4b10997335d0eec#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/0f3362108808cd37b1614c2eb4b10997335d0eec/gradio-client-1.10.0.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/0f3362108808cd37b1614c2eb4b10997335d0eec/dist/lite.js""></script>

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Jan 13, 2025

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio minor
website minor
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Document additional helper classes for gr.Chatbot

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

Copy link
Collaborator

@aliabd aliabd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abidlabs i pushed a commit for a manual fix for now, but will fix how we handle typedicts moving forward.

Looks good to merge now, just double check: https://ecf44c05.gradio-website.pages.dev/main/docs/gradio/chatbot#metadata-dict

@abidlabs
Copy link
Member Author

Made some tweaks:

image

Should be good now, I'll merge it in in the morning unless you have any objections @aliabd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants