Skip to content

Commit

Permalink
com.openai.unity 8.0.1 (#246)
Browse files Browse the repository at this point in the history
- Fixed Thread.Run.Status enum ordering
- Fixed sample scene
  • Loading branch information
StephenHodgson authored Jun 10, 2024
1 parent ea6b3a2 commit 7070d1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Runtime/Threads/RunStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public enum RunStatus
InProgress,
[EnumMember(Value = "requires_action")]
RequiresAction,
[EnumMember(Value = "incomplete")]
Incomplete,
[EnumMember(Value = "cancelling")]
Cancelling,
[EnumMember(Value = "cancelled")]
Cancelled,
[EnumMember(Value = "completed")]
Completed,
[EnumMember(Value = "incomplete")]
Incomplete,
[EnumMember(Value = "failed")]
Failed,
[EnumMember(Value = "expired")]
Expand Down
2 changes: 1 addition & 1 deletion Samples~/Chat/ChatBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private async void SubmitChat()
if (deltaResponse?.FirstChoice?.Delta == null) { return; }
assistantMessageContent.text += deltaResponse.FirstChoice.Delta.ToString();
scrollView.verticalNormalizedPosition = 0f;
}, destroyCancellationToken);
}, cancellationToken: destroyCancellationToken);

conversation.AppendMessage(response.FirstChoice.Message);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "OpenAI",
"description": "A OpenAI package for the Unity Game Engine to use GPT-4, GPT-3.5, GPT-3 and Dall-E though their RESTful API (currently in beta).\n\nIndependently developed, this is not an official library and I am not affiliated with OpenAI.\n\nAn OpenAI API account is required.",
"keywords": [],
"version": "8.0.0",
"version": "8.0.1",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.openai.unity#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.openai.unity/releases",
Expand Down

0 comments on commit 7070d1f

Please sign in to comment.