diff --git a/OpenAI/Packages/com.openai.unity/Runtime/Chat/ChatRequest.cs b/OpenAI/Packages/com.openai.unity/Runtime/Chat/ChatRequest.cs index b0f4458..bbc7040 100644 --- a/OpenAI/Packages/com.openai.unity/Runtime/Chat/ChatRequest.cs +++ b/OpenAI/Packages/com.openai.unity/Runtime/Chat/ChatRequest.cs @@ -193,7 +193,7 @@ public ChatRequest( } else { - Modalities = Modality.Text; + Modalities = Modality.Text & Modality.Audio; } FrequencyPenalty = frequencyPenalty; @@ -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). /// - [Preserve] - [JsonProperty("max_tokens")] + [JsonIgnore] [Obsolete("Use MaxCompletionTokens instead")] public int? MaxTokens { get; } diff --git a/OpenAI/Packages/com.openai.unity/package.json b/OpenAI/Packages/com.openai.unity/package.json index 8766531..d911d49 100644 --- a/OpenAI/Packages/com.openai.unity/package.json +++ b/OpenAI/Packages/com.openai.unity/package.json @@ -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",