Skip to content

0.5.1

Choose a tag to compare

@vkryukov vkryukov released this 22 Jun 22:01
· 33 commits to main since this release

0.5.1

Added

  • Map support for options - Multiple functions now accept maps in addition to keyword lists for options, providing more flexibility and consistency with Elixir conventions:
    • create/1 and create/2 - Create responses with map or keyword list options
    • stream/1 - Stream responses using map or keyword list options
    • run/2 - Run function calling conversations with map or keyword list options
    • OpenAI.Responses.Stream.stream/1 and OpenAI.Responses.Stream.stream_with_callback/2 - Stream functions also accept maps
    • Maps with mixed atom and string keys are supported
    • Example: Responses.create(%{input: "Hello", model: "gpt-4o"})