* update image api *os.File to io.Reader
* update code style
* add reader test
* supplementary reader test
* update the reader in the form builder test
* add commnet
* update comment
* update code style
* 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
* support deepseek field "reasoning_content"
* support deepseek field "reasoning_content"
* Comment ends in a period (godot)
* add comment on field reasoning_content
* fix go lint error
* chore: trigger CI
* make field "content" in MarshalJSON function omitempty
* remove reasoning_content in TestO1ModelChatCompletions func
* feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
* feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
* feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
* feat: Add missing TTS models and voices
* feat: Add new instruction field to create speech request
- From docs: Control the voice of your generated audio with additional instructions. Does not work with tts-1 or tts-1-hd.
* fix: add canary-tts back to SpeechModel
* feat: add new GPT-4.1 model variants to completion.go
* feat: add tests for unsupported models in completion endpoint
* fix: add missing periods to test function comments in completion_test.go
* feat: add Anthropic API support with custom version header
* refactor: use switch statement for API type header handling
* refactor: add OpenAI & AzureAD types to be exhaustive
* Update client.go
need explicit fallthrough in empty case statements
* constant for APIVersion; addtl tests
* Add support for O3-mini
- Add support for the o3 mini set of models, including tests that match the constraints in OpenAI's API docs (https://platform.openai.com/docs/models#o3-mini).
* Deprecate and refactor
- Deprecate `ErrO1BetaLimitationsLogprobs` and `ErrO1BetaLimitationsOther`
- Implement `validationRequestForReasoningModels`, which works on both o1 & o3, and has per-model-type restrictions on functionality (eg, o3 class are allowed function calls and system messages, o1 isn't)
* Move reasoning validation to `reasoning_validator.go`
- Add a `NewReasoningValidator` which exposes a `Validate()` method for a given request
- Also adds a test for chat streams
* Final nits
* updated checkPromptType function to handle prompt list in completions
* removed generated test file
* added corresponding unit testcases
* Updated to use less nesting with early returns
* Completion API: add 'store' param
This param allows you to opt a completion request in to being stored,
for use in distillations and evals.
* Add cached and audio tokens to usage structs
These have been added to the completions API recently:
https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage