From f6947d7345e30c9ad55ac4a989656be765c1a5b2 Mon Sep 17 00:00:00 2001 From: kswdev0 Date: Fri, 27 Mar 2026 10:51:43 +0900 Subject: [PATCH] feat: modify user message format and enhance AIPlanner options with increased context size --- ai_planner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ai_planner.py b/ai_planner.py index fac3848..7531ec7 100644 --- a/ai_planner.py +++ b/ai_planner.py @@ -197,7 +197,8 @@ class AIPlanner: model=OLLAMA_MODEL, messages=[ {"role": "system", "content": SYSTEM_PROMPT}, - {"role": "user", "content": user_message}, + {"role": "user", "content": "/no_think\n" + user_message}, + {"role": "assistant", "content": "<|think|>\n\n\n"}, ], format={ "type": "object", @@ -220,8 +221,7 @@ class AIPlanner: }, "required": ["actions"], }, - think=False, - options={"temperature": 0.3}, + options={"temperature": 0.3, "num_ctx": 8192}, ) finally: stop_event.set()