Releases: hexthedev/OpenAi-Api-Unity
Release v0.2.12
- version specific UnityWebRequest.Post | UnityWebRequest.PostWwwForm
- Merge branch 'hexthedev:main' into uwr_2022
Release v0.2.11
- Expose token usage.
- Merge branch 'hexthedev:main' into feature-60
- Add overloaded Complete method that doesn't require prompt
This is useful if dialog messages should be sent as is without an additional user prompt appended. Especially useful to echo chat responses back as inputs.
- Merge branch 'feature-60' of https://github.com/Dracarys-Interactive/OpenAi-Api-Unity into feature-60
Release v0.2.10
- (models up) | src fmt
- fix test runner
- removed removed APIs
Release v0.2.9
- Implement Chat Completion, see Issue #57
OpenAI API Changes for Chat Completion
Changes to Existing Code
- Runtime\Scenes\Api\Utility\EngineNames\EEngineName.cs: Added new model enumeration gpt_3_5_turbo
- Runtime\Scenes\Api\Utility\EngineNames\UTEngineNames.cs: Added new model enumeration gpt_3_5_turbo
- Runtime\Scripts\Api\V1\OpenAiApiV1.cs: Added ChatCompletions resource
- Editor\Scripts\Unity\V1\EMPrefabs.cs: Added editor menu OpenAi/V1/CreateChatCompleter
Additions
- Editor\Scripts\Examples\EMExampleChatRuntimeScene.cs
- Runtime\Prefabs\OpenAiChatCompleterV1.prefab
- Runtime\Scenes\ExampleChatRuntimeScene.unity
- Runtime\Scripts\Api\V1\Models\ChatCompletionV1.cs
- Runtime\Scripts\Api\V1\Models\UsageV1.cs
- Runtime\Scripts\Api\V1\Models\ChatChoiceV1.cs
- Runtime\Scripts\Api\V1\Models\ChatCompletionV1.cs
- Runtime\Scripts\Api\V1\Models\MessageV1.cs
- Runtime\Scripts\Api\V1\Api\Engines\ChatCompletion\ChatCompletionRequestV1.cs
- Runtime\Scripts\Api\V1\Api\Engines\ChatCompletion\ChatCompletionResourceV1.cs
- Runtime\Scripts\Examples\ExampleChatRuntime.cs
- Runtime\Scripts\Unity\V1\ChatCompleter\OpenAiChatCompleterV1.cs
- Runtime\Scripts\Unity\V1\ChatCompleter\SOChatCompletionArgsV1.cs
- Runtime\Config\DefaultChatCompletionArgs.asset
- Added unit tests for chat completion #58
Tests were based on tests covering existing prompt completion. Also fixed an issue with empty JSON objects and added unit tests. The last record of a chat stream has a finish reason and an empty delta object.
- Refactored OpenAiApiV1.ChatCompletions into OpenAiApiV1.Chat.Completions
Also created distinct enumeration type EChatModelNames and removed gtp-3.5-turbo out of EEngineNames. Did not include gpt-4 models as these are still in beta.
- Documentation for chat/completions and separated DeltaV1 from MessageV1
Added some documentation for chat/completions and separated DeltaV1 from MessageV1 as role is not optional for messages but is for message deltas. Also need to see message role in Unity Inspector.
Release v0.2.8
- Fix spelling error
Release v0.2.7
- Fix escaping character not appended correctly
Release v0.2.6
- Fix some typos in README
Release v0.2.5
- Add ':' as a Token to correctly process numerical values in JSON
Release v0.2.4
- Update 3_ApiCalls.md
The ApiExample exemple is missing a ";" to work properly.
Release v0.2.3
- Changed the Completion Arguments scriptable object, to work with string array for the stop sequences
- removed unnecessary namespace