fix(reason): Initialize neural provider cascade (resolves Neural-Dead kernel)
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
This commit is contained in:
@@ -61,3 +61,6 @@ RECIPIENT_ID="+1..." # For Signal/Telegram delivery
|
|||||||
# Harness Protocol Integrity & Authentication (HMAC-SHA256)
|
# Harness Protocol Integrity & Authentication (HMAC-SHA256)
|
||||||
Harness Protocol_ENFORCE_HMAC=false
|
Harness Protocol_ENFORCE_HMAC=false
|
||||||
Harness Protocol_HMAC_SECRET="change-this-to-a-secure-random-string"
|
Harness Protocol_HMAC_SECRET="change-this-to-a-secure-random-string"
|
||||||
|
|
||||||
|
# Neural Reasoning Cascade Order (Comma-separated keywords)
|
||||||
|
PROVIDER_CASCADE="openrouter,openai,anthropic,groq,gemini-api,ollama"
|
||||||
|
|||||||
@@ -159,6 +159,16 @@ Register the unified gateway as a cognitive tool.
|
|||||||
Register each supported provider with the harness's neural registry.
|
Register each supported provider with the harness's neural registry.
|
||||||
|
|
||||||
#+begin_src lisp
|
#+begin_src lisp
|
||||||
|
|
||||||
|
(let* ((env-cascade (uiop:getenv "PROVIDER_CASCADE"))
|
||||||
|
(default-list '(:openrouter :openai :anthropic :groq :gemini-api :ollama))
|
||||||
|
(final-list (if (and env-cascade (not (string= env-cascade "")))
|
||||||
|
(mapcar (lambda (s) (intern (string-upcase (string-trim '(#\Space) s)) :keyword))
|
||||||
|
(uiop:split-string env-cascade :separator '(#\,)))
|
||||||
|
default-list)))
|
||||||
|
(setf opencortex::*provider-cascade* final-list)
|
||||||
|
(opencortex:harness-log "PROBABILISTIC: Neural Cascade Initialized -> ~a" final-list))
|
||||||
|
|
||||||
(dolist (p '(:anthropic :gemini-api :gemini-web :groq :ollama :openai :openrouter))
|
(dolist (p '(:anthropic :gemini-api :gemini-web :groq :ollama :openai :openrouter))
|
||||||
(opencortex:register-probabilistic-backend p (lambda (prompt system-prompt &key model)
|
(opencortex:register-probabilistic-backend p (lambda (prompt system-prompt &key model)
|
||||||
(execute-llm-request prompt system-prompt :provider p :model model))))
|
(execute-llm-request prompt system-prompt :provider p :model model))))
|
||||||
|
|||||||
Reference in New Issue
Block a user