go-openai
go-openai copied to clipboard
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Why string and not interface? Can't enumeration values be int version:v1.36.1
For the Chat and Completions APIs make the `Temperature` field a `*float32` so we can distinguish between `0` and `null`. Users often want to set the temperature to 0, but...
This pull request includes enhancements to the `jsonschema` package, specifically adding support for enumerations in schema definitions and improving the test coverage for schema generation and comparison. Enhancements to schema...
**Describe the change** - Added the `Output` field to the `FunctionCall` struct as described in the OpenAI API docs. - This field is optional and is of type `*string`. **Provide...
A similar PR may already be submitted! Please search among the [Pull request](https://github.com/sashabaranov/go-openai/pulls) before creating one. If your changes introduce breaking changes, please prefix the title of your pull request...
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. I added example of using assistant api: creating simple assistant and how...
**Describe the change** When creating OpenAI Files, I want to be able to set the Filename to a file URI and not just the result of path.Base(filename). The Assistants API...
**Describe the change** This adds an additional function to pass through arguments for the Files List endpoint. I did this in preference of breaking the existing function - but if...
https://platform.openai.com/docs/guides/vision how to use vision function with go-openai?
**Describe the change** * Allows for more fine-grained control of types * Allows for pointers to be treated as nullable * Fixes issue with empty properties object being omitted when...