Skip to content

Commit

Permalink
com.openai.unity 8.5.1 (#329)
Browse files Browse the repository at this point in the history
- Fix ChatRequest serialization for ReasoningEffort
  • Loading branch information
StephenHodgson authored Jan 26, 2025
1 parent c1a466c commit 7c3ed2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Runtime/Chat/ChatRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,16 @@ public ChatRequest(
[JsonProperty("store")]
public bool? Store { get; set; }

/// <summary>
/// Constrains the effort of reasoning for <see href="https://platform.openai.com/docs/guides/reasoning">Reasoning Models</see>.<br/>
/// Currently supported values are: Low, Medium, High. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning response.
/// </summary>
/// <remarks>
/// <b>o1 models only!</b>
/// </remarks>
[Preserve]
[JsonProperty("reasoning_effort", DefaultValueHandling = DefaultValueHandling.Ignore)]
public ReasoningEffort ReasoningEffort { get; }
public ReasoningEffort? ReasoningEffort { get; }

/// <summary>
/// Developer-defined tags and values used for filtering completions in the dashboard.
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.5.0",
"version": "8.5.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 7c3ed2d

Please sign in to comment.