mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-09-30 01:15:10 +00:00
cerebellum: env-driven plug-and-play model selection
PickLLM reads OPENHERMES_URL/OPENHERMES_MODEL from the environment and mounts OpenHermesClient when a URL is set, else StubLLM -- the bus wiring is identical either way. EnvLookup helper parses Env.vars. Verified both paths compile + run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015hmgREHNsxYCuim33yUF2c
This commit is contained in:
+4
-2
@@ -26,8 +26,10 @@ actor Main
|
||||
"reshuffle: cross-only"))
|
||||
|
||||
// --- cerebellum harness plugged into the bus (C1 / OpenHermes) ---
|
||||
// Swap StubLLM for a real OpenHermes client and nothing else changes.
|
||||
let cerebellum = CerebellumHarness(env.out, broker, StubLLM, 2)
|
||||
// Plug-and-play: PickLLM chooses the model from the environment
|
||||
// (OPENHERMES_URL/MODEL -> real client, else StubLLM); nothing else changes.
|
||||
let cerebellum =
|
||||
CerebellumHarness(env.out, broker, PickLLM(env.out, env.vars), 2)
|
||||
broker.register(Cerebellum, cerebellum)
|
||||
|
||||
// A user turn enters the bus addressed to the cerebellum; it sequences the
|
||||
|
||||
Reference in New Issue
Block a user