-
Notifications
You must be signed in to change notification settings - Fork 79
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
Chat example using structured output from openai #1611
base: main
Are you sure you want to change the base?
Conversation
shiny | ||
shinyswatch | ||
python-dotenv | ||
openai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this is the correct version, but the summarize feature wasn't working for me with 1.31.1
openai | |
openai>=1.41.1 |
json_str = json.dumps(recipe().dict(), indent=2) | ||
return json_str | ||
|
||
@reactive.Effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reactive.Effect | |
@reactive.effect |
Thank you for this James, this is really great! I left a couple suggestions, but I'll handle them myself -- I have more than a few suggestions, so I'll take care of that myself :) |
Awesome! I look forward to seeing what you do with it and to learn from how you approach it. |
This PR introduces a new example app demonstrating Shiny's chat capabilities with structured output parsing. This is what I was showing you in the workshop @cpsievert.
Key features:
This example showcases how to combine chat functionality with conditional structured output, providing a practical use case for developers building similar applications in Shiny.