* feat: add gpt-image-1 support
* feat: add example to generate image using gpt-image-1 model
* style: missing period in comments
* feat: add missing fields to example
* docs: add GPT Image 1 to README
* revert: keep `examples/images/main.go` unchanged
* docs: remove unnecessary newline from example in README file
As a user of this go SDK it was not immediately intuitive to me how to
correctly utilize the function calling capability of GPT4
(https://platform.openai.com/docs/guides/function-calling). While the
aformentioned link provides a helpful example written in python, I
initially tripped over how to correclty translate the specification of
function arguments when usingthis go SDK.
To make it easier for others in the future this commit adds a
completion-with-tool example showing how to correctly utilize the
function calling capability of GPT4 using this SDK end-to-end in a
CreateChatCompletion() sequence.
* Add speech to text example in docs
* Add caption formats for audio transcription
* Add caption example to README
* Address sanity check errors
* Add tests for decodeResponse
* Use typechecker for audio response format
* Decoding response refactors
* Migrated examples to example_test.go
* Add some executable examples
* Update error docs
* Avoid linting example files which break conventions
* Restore README examples
* Enable linting for example_test