OpenDive / OpenAIKit

Swift Package for OpenAI's API
MIT License
248 stars 46 forks source link

Support for Response Format #56

Open thomasalbert1993 opened 3 weeks ago

thomasalbert1993 commented 3 weeks ago

Describe the feature or improvement you're requesting

In order to expect structured responses, please add responseFormat field in ChatParameters, which should be an enum with following cases:

Additional context

No response

MarcoDotIO commented 3 weeks ago

Hi there!

thanks for bringing this up. I’ll go ahead and add that in this week as a hot patch.

A little bit of a sneak peak, though I do have plans on looking into bringing the Live API to this SDK soon.