Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
91fc3c48
Unverified
Commit
91fc3c48
authored
Aug 20, 2025
by
Michael Yang
Committed by
GitHub
Aug 20, 2025
Browse files
openai: remove reasoning as an api.Options (#11993)
parent
6de62664
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
openai/openai.go
openai/openai.go
+0
-2
No files found.
openai/openai.go
View file @
91fc3c48
...
@@ -557,12 +557,10 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {
...
@@ -557,12 +557,10 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {
var
think
*
api
.
ThinkValue
var
think
*
api
.
ThinkValue
if
r
.
Reasoning
!=
nil
{
if
r
.
Reasoning
!=
nil
{
options
[
"reasoning"
]
=
*
r
.
Reasoning
.
Effort
think
=
&
api
.
ThinkValue
{
think
=
&
api
.
ThinkValue
{
Value
:
*
r
.
Reasoning
.
Effort
,
Value
:
*
r
.
Reasoning
.
Effort
,
}
}
}
else
if
r
.
ReasoningEffort
!=
nil
{
}
else
if
r
.
ReasoningEffort
!=
nil
{
options
[
"reasoning"
]
=
*
r
.
ReasoningEffort
think
=
&
api
.
ThinkValue
{
think
=
&
api
.
ThinkValue
{
Value
:
*
r
.
ReasoningEffort
,
Value
:
*
r
.
ReasoningEffort
,
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment