From 076a1bc7ca54dcaf738457c12959145f389dcff3 Mon Sep 17 00:00:00 2001 From: Marc-oss-hub Date: Tue, 11 Aug 2026 11:12:44 +0800 Subject: [PATCH] Add OrcaRouter as a built-in LLM spec option Mirrors the existing OpenRouter entry: adds an OrcaRouter API spec template (OpenAI-compatible /v1 chat/completions) to the spec lists and a corresponding entry in LLM_CONFIGS so it appears in the scan target dropdown alongside OpenRouter. Co-Authored-By: Claude --- agentic_security/routes/_specs.py | 29 +++++++++++++++++++++++++++++ agentic_security/static/base.js | 16 ++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/agentic_security/routes/_specs.py b/agentic_security/routes/_specs.py index 52446a52..33aaf27d 100644 --- a/agentic_security/routes/_specs.py +++ b/agentic_security/routes/_specs.py @@ -175,6 +175,20 @@ "frequency_penalty": 0, "presence_penalty": 0 } +""", + """POST https://api.orcarouter.ai/v1/chat/completions +Authorization: Bearer $ORCAROUTER_API_KEY +Content-Type: application/json + +{ + "model": "openai/gpt-5.5", + "messages": [{"role": "user", "content": "<>"}], + "temperature": 0.7, + "max_tokens": 150, + "top_p": 0.9, + "frequency_penalty": 0, + "presence_penalty": 0 +} """, ] @@ -356,6 +370,20 @@ "frequency_penalty": 0, "presence_penalty": 0 } +""", + """POST https://api.orcarouter.ai/v1/chat/completions +Authorization: Bearer $ORCAROUTER_API_KEY +Content-Type: application/json + +{ + "model": "openai/gpt-5.5", + "messages": [{"role": "user", "content": "<>"}], + "temperature": 0.7, + "max_tokens": 150, + "top_p": 0.9, + "frequency_penalty": 0, + "presence_penalty": 0 +} """, ] @@ -392,6 +420,7 @@ {"name": "Azure OpenAI", "prompts": 40000, "logo": "/icons/azureai.png"}, {"name": "assemblyai", "prompts": 40000, "logo": "/icons/myshell.png"}, {"name": "OpenRouter.ai", "prompts": 40000, "logo": "/icons/openrouter.png"}, + {"name": "OrcaRouter", "prompts": 40000, "logo": "/icons/myshell.png"}, ] LLM_SPECS = [dict(spec=spec, **d) for spec, d in zip(_SPECS, LLM_CONFIGS)] diff --git a/agentic_security/static/base.js b/agentic_security/static/base.js index ee5166d8..c7e70ebe 100644 --- a/agentic_security/static/base.js +++ b/agentic_security/static/base.js @@ -185,6 +185,21 @@ Content-Type: application/json "frequency_penalty": 0, "presence_penalty": 0 } +`, + + `POST https://api.orcarouter.ai/v1/chat/completions +Authorization: Bearer $ORCAROUTER_API_KEY +Content-Type: application/json + +{ + "model": "openai/gpt-5.5", + "messages": [{"role": "user", "content": "<>"}], + "temperature": 0.7, + "max_tokens": 150, + "top_p": 0.9, + "frequency_penalty": 0, + "presence_penalty": 0 +} `, ] @@ -206,6 +221,7 @@ let LLM_CONFIGS = [ { name: 'Azure OpenAI', prompts: 40000, logo: '/icons/azureai.png' }, { name: 'assemblyai', prompts: 40000, logo: fallbackIcon }, { name: 'OpenRouter.ai', prompts: 40000, logo: '/icons/openrouter.png' }, + { name: 'OrcaRouter', prompts: 40000, logo: fallbackIcon }, ]; function has_image(spec) {