openai-hs
openai-hs copied to clipboard
Unofficial OpenAI Haskell Bindings
You should use the chat completions API instead according to OpenAI https://platform.openai.com/docs/deprecations/edit-models-endpoint
Here's a fix for issue 15, just changing the type of the field and the To/FromJSON instances.
- Add ChatMessageContent type to support image_url content - Support the image_url detail parameter
Morning @agrafix 😉 Recent versions of OpenAI added [JSON mode](https://platform.openai.com/docs/guides/text-generation/json-mode). Passing a `response_format` [object](https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format) in a chat completion request ensures that OpenAI will try to respond with valid JSON. I...
This is a very helpful package and I think it would be cool to include in Stackage! https://github.com/commercialhaskell/stackage/blob/master/MAINTAINERS.md#adding-a-package
The arguments field of a function call object is not guaranteed to be valid JSON, here's the relevant quote from the API reference ``` The arguments to call the function...
When doing requests in parallel it's not too hard to hit rate limits: https://platform.openai.com/docs/guides/rate-limits Would be great to have rate limiting support, e.g. across all clients generated from the same...
Hi there, this library looks pretty cool. Have you thought about adding it to the [list of community maintained libraries](https://beta.openai.com/docs/libraries/community-libraries)? How "complete" is the current state of the library? [Adding...