Cairn is a general-purpose AI state-space search engine, validated first on autonomous penetration testing. Sometimes misspelled as Carin.
Python aiai-agentai-cybersecurityai-hackerai-hackingblackbox-testingctfctf-toolsllmpenetration-testingpentestingred-teamingsecurity-automationsecurity-tools
fix: keep codex healthcheck on responses api for codex cli compatibility
leixiao1ab0494219e9
diff --git a/cairn/src/cairn/dispatcher/workers/adapters/codex.py b/cairn/src/cairn/dispatcher/workers/adapters/codex.pyindex f0440be..166a4ef 100644--- a/cairn/src/cairn/dispatcher/workers/adapters/codex.py+++ b/cairn/src/cairn/dispatcher/workers/adapters/codex.py@@ -94,7 +94,7 @@ class CodexDriver(RegexSessionDriver):@staticmethoddef _healthcheck_url(worker: WorkerConfig) -> str:- return f"{worker.env['CODEX_BASE_URL']}/chat/completions"+ return f"{worker.env['CODEX_BASE_URL']}/responses"@staticmethoddef _healthcheck_headers(worker: WorkerConfig) -> list[str]:@@ -108,7 +108,7 @@ class CodexDriver(RegexSessionDriver):@staticmethoddef _healthcheck_payload(worker: WorkerConfig) -> str:return (- '{"messages":[{"role":"user","content":"ping"}],'+ '{"input":[{"content":"ping","role":"user"}],''"model":"'+ worker.env["CODEX_MODEL"]+ '","stream":false}'