This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
v1.5.0
Added
- Add support for Function Calling in the chat completions handler. Function calling guide.
Changed
- Improve Examples in Readme.
- The
\Tectalic\OpenAi\Models\Completions\CreateRequest::$prompt
property is now required. - The
\Tectalic\OpenAi\Models\Completions\CreateResponseChoicesItem::$text
property is now required. - The
\Tectalic\OpenAi\Models\Completions\CreateResponseChoicesItem::$index
property is now required. - The
\Tectalic\OpenAi\Models\Completions\CreateResponseChoicesItem::$logprobs
property is now required. - The
\Tectalic\OpenAi\Models\Completions\CreateResponseChoicesItem::$finish_reason
property is now required. - The
\Tectalic\OpenAi\Models\ChatCompletions\CreateRequestMessagesItem::$content
property is no longer marked as required, as it is not required forfunction
chats but is for all other types. - Document the valid values for the
\Tectalic\OpenAi\Models\Completions\CreateResponseChoicesItem::$finish_reason
property. - Document the valid values for the
\Tectalic\OpenAi\Models\ChatCompletions\CreateResponseChoicesItem::$finish_reason
property. - API version updated from 1.2.0 to 1.3.1.
Full Changelog: v1.4.0...v1.5.0