Update model information to support the new OpenAI models #368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
Fix #360
Update model information to support the new OpenAI models.
The OpenAI reasoning models do not support the
temperature
setting -- they error out if you set the value. But theDeepSeek R1
OpenAI compatible API still allows passing thetemperature
setting even though it has not effect.I don't have access to the
o3
model (requires verifying organization), but I've verified the changes witho1
,o3-mini
,o4-mini
,gpt-4.1
,gpt-4.1-mini
, andgpt-4.1-nano
modules and it works fine.The
o1-mini
model doesn't work because it doesn't support the system prompt (very weird). Given that theo3-mini
is out and recommended, I think it's fine to not work witho1-mini
.Regarding the reasoning/thinking tokens:
The OpenAI reasoning models do not expose the Chain of Thoughts (CoT) tokens. They may provide a summary but that is not available with the
Chat Completion APIs
(see details here).The
DeepSeek R1
exposes the CoT tokens and has a really nice way of dealing with it in their version of OpenAI compatibleChat Completion APIs
(see its reasoning model doc for details). However, the .NET OpenAI SDK doesn't exposereasoning_content
today. The tracking issue is Additional properties from OpenAI-compatible response are needed but not exposed openai/openai-dotnet#259 (comment)The
Gemini
thinking models also exposes the CoT tokens but is limited with the OpenAI compatible APIs today. See https://discuss.ai.google.dev/t/reasoning-tokens-combined-with-completion-tokens-in-openai-compatibility-mode/58354/7?utm_source=chatgpt.com for details. It may support exposing CoT tokens with the same way asDeepSeek R1
in future.We will work on supporting the CoT tokens once .NET OpenAI SDK is fixed to expose the
reasoning_content
field.