File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1- namespace Devlooped . Extensions . AI ;
1+ using System . ComponentModel ;
2+
3+ namespace Devlooped . Extensions . AI ;
24
35/// <summary>
46/// Effort a reasoning model should apply when generating a response.
@@ -12,7 +14,9 @@ public enum ReasoningEffort
1214 None ,
1315 /// <summary>
1416 /// Minimal reasoning effort, which may result in faster responses. Support depends on the model.
17+ /// Unsupported as of gpt-5.1+
1518 /// </summary>
19+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1620 Minimal ,
1721 /// <summary>
1822 /// Low effort reasoning, which may result in faster responses but less detailed or accurate answers.
@@ -25,5 +29,9 @@ public enum ReasoningEffort
2529 /// <summary>
2630 /// High effort reasoning, which may take longer but provides more detailed and accurate responses.
2731 /// </summary>
28- High
32+ High ,
33+ /// <summary>
34+ /// New highest reasoning level as of gpt-5.2+.
35+ /// </summary>
36+ XHigh
2937}
Original file line number Diff line number Diff line change @@ -121,12 +121,13 @@ public async Task GPT5_ThinksFast()
121121 }
122122
123123 [ SecretsTheory ( "OPENAI_API_KEY" ) ]
124+ [ InlineData ( ReasoningEffort . Minimal , "gpt-5" ) ] // Obsolete as of 5.1
124125 [ InlineData ( ReasoningEffort . None ) ]
125- [ InlineData ( ReasoningEffort . Minimal ) ]
126126 [ InlineData ( ReasoningEffort . Low ) ]
127127 [ InlineData ( ReasoningEffort . Medium ) ]
128128 [ InlineData ( ReasoningEffort . High ) ]
129- public async Task GPT5_ThinkingTime ( ReasoningEffort effort )
129+ [ InlineData ( ReasoningEffort . XHigh ) ]
130+ public async Task GPT5_ThinkingTime ( ReasoningEffort effort , string modelId = "gpt-5.2" )
130131 {
131132 var messages = new Chat ( )
132133 {
@@ -136,7 +137,7 @@ public async Task GPT5_ThinkingTime(ReasoningEffort effort)
136137
137138 var requests = new List < JsonNode > ( ) ;
138139
139- var chat = new OpenAIChatClient ( Configuration [ "OPENAI_API_KEY" ] ! , "gpt-5.2" ,
140+ var chat = new OpenAIChatClient ( Configuration [ "OPENAI_API_KEY" ] ! , modelId ,
140141 OpenAIClientOptions . Observable ( requests . Add ) . WriteTo ( output ) ) ;
141142
142143 var options = new ChatOptions
You can’t perform that action at this time.
0 commit comments