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

Help with Structured Output #15

Open
Alex793x opened this issue Aug 12, 2024 · 1 comment
Open

Help with Structured Output #15

Alex793x opened this issue Aug 12, 2024 · 1 comment

Comments

@Alex793x
Copy link

Hi @linux-china, thanks for you hard work and this amazing repo!

  • We struggle to use the Structured Output, and in the documentation it looks like we simply use a different return type than String and that would automatically make the request a function call to the output structured json format ... is that correct ? Otherwise we totally misunderstood, your implementation. Would you be able to show an example of how we can utilize the new Structured output?
@linux-china
Copy link
Owner

linux-china commented Aug 13, 2024

@Alex793x yes, just change return type, please take a look at unit test:

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

2 participants