fix(gateway): Repair malformed handler-case syntax in LLM Gateway
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:
@@ -127,8 +127,9 @@ This is the primary actuator for neural reasoning. It handles the specific JSON
|
|||||||
(t (cl-json:encode-json-to-string `((model . ,(or model (case provider (:groq "llama-3.3-70b-versatile") (:openai "gpt-4o") (t "google/gemini-2.0-flash-001"))))
|
(t (cl-json:encode-json-to-string `((model . ,(or model (case provider (:groq "llama-3.3-70b-versatile") (:openai "gpt-4o") (t "google/gemini-2.0-flash-001"))))
|
||||||
(messages . (( (role . "system") (content . ,system-prompt) ) ( (role . "user") (content . ,prompt) )))))))))
|
(messages . (( (role . "system") (content . ,system-prompt) ) ( (role . "user") (content . ,prompt) )))))))))
|
||||||
(handler-case
|
(handler-case
|
||||||
|
(let* ((response (progn
|
||||||
(harness-log "LLM DEBUG: Sending body to ~a: ~a" endpoint body)
|
(harness-log "LLM DEBUG: Sending body to ~a: ~a" endpoint body)
|
||||||
(let* ((response (dex:post endpoint :headers headers :content body :connect-timeout 10 :read-timeout 30))
|
(dex:post endpoint :headers headers :content body :connect-timeout 10 :read-timeout 30)))
|
||||||
(json (cl-json:decode-json-from-string response)))
|
(json (cl-json:decode-json-from-string response)))
|
||||||
(harness-log "LLM DEBUG: Raw Response: ~a" response)
|
(harness-log "LLM DEBUG: Raw Response: ~a" response)
|
||||||
(let ((content (case provider
|
(let ((content (case provider
|
||||||
|
|||||||
Reference in New Issue
Block a user