Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Releases: hexthedev/OpenAi-Api-Unity

Release v0.2.12

04 Jul 15:15
Compare
Choose a tag to compare
Release v0.2.12 Pre-release
Pre-release
  • version specific UnityWebRequest.Post | UnityWebRequest.PostWwwForm
  • Merge branch 'hexthedev:main' into uwr_2022

Release v0.2.11

16 Jun 15:50
Compare
Choose a tag to compare
Release v0.2.11 Pre-release
Pre-release
  • 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.

Release v0.2.10

04 Jun 22:58
Compare
Choose a tag to compare
Release v0.2.10 Pre-release
Pre-release
  • (models up) | src fmt
  • fix test runner
  • removed removed APIs

Release v0.2.9

08 Apr 00:18
Compare
Choose a tag to compare
Release v0.2.9 Pre-release
Pre-release
  • 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

17 Mar 15:05
Compare
Choose a tag to compare
Release v0.2.8 Pre-release
Pre-release
  • Fix spelling error

Release v0.2.7

27 Feb 21:03
Compare
Choose a tag to compare
Release v0.2.7 Pre-release
Pre-release
  • Fix escaping character not appended correctly

Release v0.2.6

17 Feb 01:52
Compare
Choose a tag to compare
Release v0.2.6 Pre-release
Pre-release
  • Fix some typos in README

Release v0.2.5

06 Feb 20:53
Compare
Choose a tag to compare
Release v0.2.5 Pre-release
Pre-release
  • Add ':' as a Token to correctly process numerical values in JSON

Release v0.2.4

30 Sep 23:50
Compare
Choose a tag to compare
Release v0.2.4 Pre-release
Pre-release
  • Update 3_ApiCalls.md

The ApiExample exemple is missing a ";" to work properly.

Release v0.2.3

01 Dec 16:40
Compare
Choose a tag to compare
Release v0.2.3 Pre-release
Pre-release
  • Changed the Completion Arguments scriptable object, to work with string array for the stop sequences
  • removed unnecessary namespace