All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Breaking change on OpenAI API regarding "transient" field in Audio (#160)
- Error handling: use error code as exception message if error message is empty (#150)
- Error handling: Catch error in stream responses (#150)
- Error handling: Handle errors where message is an array (#150)
- Chat/CreateResponse faking with function_call (#145)
- Add support for function calling in the Chat Completions API (#144)
- Exception handling for server error with non default content type header (#134)
- Faking embedding responses for multidimensional vectors (#131)
- Add support for psr/http-message ^2.0 (#130)
- fix: stream broken after checking for errors (regression of #113)
- Support for HTTP base uri (#106)
- unify exception handling between HTTP client implementations (#113)
- fix toArray() on
CreateStreamedResponseDelta
to match the original API response (#108)
- explain usage for "OpenAI on Azure" (#109)
- Testing support (#71)
- Trim ApiKey before sending it to the API (#101)
- Nullable fields on error response (#102)
- Stream suppport (#84)
- Removed dependency for
guzzlehttp/guzzle
and use PSR-18 client discovery instead (#75) - Add Client factory which allows for a custom HTTP client
- Client factory further accepts custom HTTP headers, query parameters and API URI
status_details
can be a string in file responses. Affects Files and FineTunes resources (#68)
Audio
resource to turn audio into text powered bywhisper-1
(#62)
Chat
resource aka ChatGPT powered bygpt-3.5-turbo
(#60)
- Missing
events
on FineTunesRetrieveResponse
(#41)
OpenAI::client()
first argument changed fromapiToken
toapiKey
(#25)
- Getting contents from Guzzle's response causing issues with middleware (#33)
- FineTunes create response:
batch_size
,learning_rate
andfine_tuned_model
are nullable (#16) - File responses: add missing fields
status
andstatus_details
- Add
images()
resource to interact with DALL-E
- Parse completions create response with logprobs correctly
- First version