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

Update assistants HTTP header #61

Closed jianghoy closed 6 months ago

jianghoy commented 6 months ago

Per official doc, the HTTP header is updated with a v2 tag: https://platform.openai.com/docs/assistants/overview?context=without-streaming

Current code is still using v1 tag and resulting in a 400.

After changing the header to v2, it works without issues.

wkok commented 6 months ago

Thank you!