Skip to content

Commit 7070d1f

Browse files
com.openai.unity 8.0.1 (#246)
- Fixed Thread.Run.Status enum ordering - Fixed sample scene
1 parent ea6b3a2 commit 7070d1f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Runtime/Threads/RunStatus.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public enum RunStatus
1414
InProgress,
1515
[EnumMember(Value = "requires_action")]
1616
RequiresAction,
17-
[EnumMember(Value = "incomplete")]
18-
Incomplete,
1917
[EnumMember(Value = "cancelling")]
2018
Cancelling,
2119
[EnumMember(Value = "cancelled")]
2220
Cancelled,
2321
[EnumMember(Value = "completed")]
2422
Completed,
23+
[EnumMember(Value = "incomplete")]
24+
Incomplete,
2525
[EnumMember(Value = "failed")]
2626
Failed,
2727
[EnumMember(Value = "expired")]

Samples~/Chat/ChatBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private async void SubmitChat()
123123
if (deltaResponse?.FirstChoice?.Delta == null) { return; }
124124
assistantMessageContent.text += deltaResponse.FirstChoice.Delta.ToString();
125125
scrollView.verticalNormalizedPosition = 0f;
126-
}, destroyCancellationToken);
126+
}, cancellationToken: destroyCancellationToken);
127127

128128
conversation.AppendMessage(response.FirstChoice.Message);
129129

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "OpenAI",
44
"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.",
55
"keywords": [],
6-
"version": "8.0.0",
6+
"version": "8.0.1",
77
"unity": "2021.3",
88
"documentationUrl": "https://github.com/RageAgainstThePixel/com.openai.unity#documentation",
99
"changelogUrl": "https://github.com/RageAgainstThePixel/com.openai.unity/releases",

0 commit comments

Comments
 (0)