wkok / openai-clojure

Clojure functions to drive the OpenAI API
https://cljdoc.org/d/net.clojars.wkok/openai-clojure
MIT License
208 stars 28 forks source link

Add support for Structural Outputs (e.g. latest api) #66

Open ikitommi opened 3 months ago

ikitommi commented 3 months ago

Did a test with malli + openai, which works great. Tried to use your lib here, but the openapi definition is not up-to-date and coudn't use the :response_format key.

If you want to bridge malli to your lib, feel free to reuse the code I wrote for this: https://gist.github.com/ikitommi/e643713719c3620f943ef34086451c69#file-openai-clj-L14-L19

wkok commented 3 months ago

I've updated the openapi definitions in v0.19.0