This commit is contained in:
2026-07-24 08:31:36 +07:00
parent d7adfaffa8
commit 7ec3edfd77
4 changed files with 198 additions and 393 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ function decisionMaker(a::T; recentevents::Integer=20, maxattempt=3
"""
# strict output format
json_schema = Dict(
response_format = Dict(
"type"=> "json_schema",
"json_schema"=> Dict(
"name"=> "user_profile",
@@ -185,7 +185,7 @@ function decisionMaker(a::T; recentevents::Integer=20, maxattempt=3
"model"=> "gemma-4-E4B-it-UD-Q4_K_XL",
"messages"=> a.chathistory,
"temperature"=> 0.7,
"response_format"=> json_schema,
"response_format"=> response_format,
)
for attempt in 1:maxattempt