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

Bespoke UI with Structured Output #24

Open
metaskills opened this issue Aug 6, 2024 · 2 comments
Open

Bespoke UI with Structured Output #24

metaskills opened this issue Aug 6, 2024 · 2 comments

Comments

@metaskills
Copy link
Owner

So besides this work already done:

Can we do something with the new OpenAI Structured Outputs. See their "Dynamically generating user interfaces based on the user’s intent" section.

https://openai.com/index/introducing-structured-outputs-in-the-api/

Here is a gist of what they showed and how to instruct zod with the new response format helper.

https://gist.github.com/metaskills/2bf51e5f4ed89a5d5e0d3dfe78be0d1f

@metaskills
Copy link
Owner Author

I think the question is what processes the output and creates styled presentation layer components.

Landing Page Sign Up Stock Price
Screenshot 2024-08-06 at 4 42 57 PM Screenshot 2024-08-06 at 4 43 04 PM Screenshot 2024-08-06 at 4 43 18 PM

Their demos do not seem to line up with the shown zod response format. Which is expected. I get the point. But still there are a lot of questions. For example, are we going to throw a bunch of HTML into the context window from a tool output and expect the LLM to add it to a chat completion or assistants response verbatim?

Screenshot 2024-08-06 at 4 44 10 PM

@metaskills
Copy link
Owner Author

metaskills commented Aug 7, 2024

Demonstrate Function Calling & Structured Outputs with Zod - ef54d18

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

No branches or pull requests

1 participant