REFAC: Standardize on Cognitive Cycle and update documentation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
(in-package :org-agent)
|
||||
(in-package :opencortex)
|
||||
|
||||
(defun execute-openrouter-request (prompt system-prompt &key model)
|
||||
(let ((api-key (uiop:getenv "OPENROUTER_API_KEY"))
|
||||
@@ -8,7 +8,7 @@
|
||||
(kernel-log "OPENROUTER DEBUG - Using Model: ~a" model-id)
|
||||
(let* ((headers `(("Content-Type" . "application/json")
|
||||
("Authorization" . ,(format nil "Bearer ~a" api-key))
|
||||
("HTTP-Referer" . "https://github.com/amr/org-agent")))
|
||||
("HTTP-Referer" . "https://github.com/amr/opencortex")))
|
||||
(body (cl-json:encode-json-to-string
|
||||
`((model . ,model-id)
|
||||
(messages . (( (role . "system") (content . ,system-prompt) )
|
||||
|
||||
Reference in New Issue
Block a user