Skip to content

Commit

Permalink
OpenAI-DotNet 8.5.4
Browse files Browse the repository at this point in the history
- Update ChatRequest to support 03 series reasoning models
  • Loading branch information
StephenHodgson committed Jan 31, 2025
1 parent 9f2be35 commit 4364ada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions OpenAI-DotNet/Chat/ChatRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ public ChatRequest(

if (reasoningEffort.HasValue)
{
if (!Model.Contains("o1"))
{
throw new ArgumentException("Only o1 series models support reasoning effort", nameof(reasoningEffort));
}

ReasoningEffort = reasoningEffort.Value;
}

Expand Down
4 changes: 3 additions & 1 deletion OpenAI-DotNet/OpenAI-DotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ More context [on Roger Pincombe's blog](https://rogerpincombe.com/openai-dotnet-
<AssemblyOriginatorKeyFile>OpenAI-DotNet.pfx</AssemblyOriginatorKeyFile>
<IncludeSymbols>true</IncludeSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>8.5.3</Version>
<Version>8.5.4</Version>
<PackageReleaseNotes>
Version 8.5.4
- Update ChatRequest to support 03 series reasoning models
Version 8.5.3
- Fix JsonStringEnumConverter for ChatRequests
Version 8.5.1
Expand Down

0 comments on commit 4364ada

Please sign in to comment.