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
358ac39b
Commit
358ac39b
authored
Mar 13, 2026
by
Kantz
Browse files
math_intet deaktivert
parent
a8ba91dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
math-tutor/backend/app/LLM_services/math_intent_LLM.py
View file @
358ac39b
...
@@ -43,14 +43,14 @@ ODER
...
@@ -43,14 +43,14 @@ ODER
"""
"""
def
solve_with_tools
(
user_text
:
str
)
->
str
:
def
solve_with_tools
(
user_text
:
str
)
->
str
:
return
"none"
messages
=
[
messages
=
[
{
"role"
:
"system"
,
"content"
:
SYSTEM
},
{
"role"
:
"system"
,
"content"
:
SYSTEM
},
{
"role"
:
"user"
,
"content"
:
user_text
+
"
\n
Antworte nur mit 'Keine Lösung' falls es in dieser Nachricht KEINE Berechung gibt."
},
{
"role"
:
"user"
,
"content"
:
user_text
+
"
\n
Antworte nur mit 'Keine Lösung' falls es in dieser Nachricht KEINE Berechung gibt."
},
]
]
result
,
tool_outputs
=
llm_client
.
chat
_with_tools
(
result
=
llm_client
.
chat
(
messages
=
messages
,
messages
=
messages
,
tools
=
[
sympy_solve
],
use_ollama
=
True
,
use_ollama
=
True
,
)
)
return
llm_client
.
get_message_content
(
result
)
return
llm_client
.
get_message_content
(
result
)
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