Skip to content

Commit

Permalink
com.openai.unity 8.4.1 (#307)
Browse files Browse the repository at this point in the history
- Fix ChatRequest serialization for Azure OpenAI
  • Loading branch information
StephenHodgson authored Nov 15, 2024
1 parent 3a5383a commit 1eefc93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions OpenAI/Packages/com.openai.unity/Runtime/Chat/ChatRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public ChatRequest(
}
else
{
Modalities = Modality.Text;
Modalities = Modality.Text & Modality.Audio;
}

FrequencyPenalty = frequencyPenalty;
Expand Down Expand Up @@ -302,8 +302,7 @@ public ChatRequest(
/// The maximum number of tokens allowed for the generated answer.
/// By default, the number of tokens the model can return will be (4096 - prompt tokens).
/// </summary>
[Preserve]
[JsonProperty("max_tokens")]
[JsonIgnore]
[Obsolete("Use MaxCompletionTokens instead")]
public int? MaxTokens { get; }

Expand Down
2 changes: 1 addition & 1 deletion OpenAI/Packages/com.openai.unity/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.4.0",
"version": "8.4.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 1eefc93

Please sign in to comment.