diff --git a/config.yaml b/config.yaml index 88b64e02..340c24a1 100644 --- a/config.yaml +++ b/config.yaml @@ -53,8 +53,8 @@ synthesis_model: smart_model_routing: enabled: true - max_simple_chars: 400 - max_simple_words: 75 + max_simple_chars: 1000 + max_simple_words: 200 cheap_model: provider: 'ollama' model: 'gemma2:2b' diff --git a/tasks.py b/tasks.py index afc5f228..431dde8d 100644 --- a/tasks.py +++ b/tasks.py @@ -226,6 +226,23 @@ def hermes_local(prompt, model=None, caller_tag=None, toolsets=None): return None return result.get("response") +def run_reflex_task(prompt, caller_tag): + """Force a task to run on the cheapest local model (The Reflex Layer). + + Use this for non-reasoning tasks like formatting, categorization, + and simple status checks to save expensive context for coding. + """ + return run_hermes_local( + prompt=prompt, + model="gemma2:2b", + caller_tag=f"reflex-{caller_tag}", + disable_all_tools=True, + skip_context_files=True, + skip_memory=True, + max_iterations=1, + ) + + ARCHIVE_EPHEMERAL_SYSTEM_PROMPT = ( "You are running a private archive-processing microtask for Timmy.\n"