Compare commits
2 Commits
gemini/pas
...
gemini/for
| Author | SHA1 | Date | |
|---|---|---|---|
| 99b54a31d1 | |||
| c228adddc9 |
@@ -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'
|
||||
|
||||
17
tasks.py
17
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"
|
||||
|
||||
Reference in New Issue
Block a user