Compare commits

...

2 Commits

2 changed files with 19 additions and 2 deletions

View File

@@ -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'

View File

@@ -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"