Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
fa3e49fd
Commit
fa3e49fd
authored
Jul 01, 2026
by
Kantz
Browse files
disabled reasoning with openAi
parent
d9c0e760
Changes
2
Hide whitespace changes
Inline
Side-by-side
math-tutor/backend/app/deterministic_services/llm_client.py
View file @
fa3e49fd
...
@@ -155,7 +155,6 @@ def _chat_openai_compatible(
...
@@ -155,7 +155,6 @@ def _chat_openai_compatible(
kwargs
=
{
"messages"
:
messages
,
"model"
:
settings
.
model
}
kwargs
=
{
"messages"
:
messages
,
"model"
:
settings
.
model
}
if
settings
.
temperature
is
not
None
:
if
settings
.
temperature
is
not
None
:
kwargs
[
"temperature"
]
=
settings
.
temperature
kwargs
[
"temperature"
]
=
settings
.
temperature
kwargs
[
"reasoning_effort"
]
=
"medium"
if
config
.
get_llm_thinking_enabled
()
else
"none"
response
=
client
.
chat
.
completions
.
create
(
**
kwargs
)
response
=
client
.
chat
.
completions
.
create
(
**
kwargs
)
message
=
response
.
choices
[
0
].
message
if
response
.
choices
else
{}
message
=
response
.
choices
[
0
].
message
if
response
.
choices
else
{}
return
{
"raw"
:
response
,
"message"
:
message
}
return
{
"raw"
:
response
,
"message"
:
message
}
...
...
math-tutor/backend/app/deterministic_services/llm_tool_client.py
View file @
fa3e49fd
...
@@ -227,7 +227,6 @@ async def _run_openai_compatible_tool_loop(
...
@@ -227,7 +227,6 @@ async def _run_openai_compatible_tool_loop(
"model"
:
settings
.
model
,
"model"
:
settings
.
model
,
"messages"
:
request_messages
,
"messages"
:
request_messages
,
"tools"
:
chat_tools
,
"tools"
:
chat_tools
,
"reasoning_effort"
:
"medium"
if
config
.
get_llm_thinking_enabled
()
else
"none"
,
}
}
if
settings
.
temperature
is
not
None
:
if
settings
.
temperature
is
not
None
:
request_kwargs
[
"temperature"
]
=
settings
.
temperature
request_kwargs
[
"temperature"
]
=
settings
.
temperature
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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