Skip to content

Commit be85b21

Browse files
committed
fix(add spec OpenRouter.ai to base.js)
1 parent 7e05716 commit be85b21

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

agentic_security/static/base.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
let SELF_URL = window.location.href;
32
if (SELF_URL.endsWith('/')) {
43
SELF_URL = SELF_URL.slice(0, -1);
@@ -171,6 +170,21 @@ Content-Type: application/json
171170
{
172171
"audio_url": "<<AUDIO_FILE_URL>>"
173172
}
173+
`,
174+
175+
`POST https://api.openrouter.ai/v1/chat/completions
176+
Authorization: Bearer $OPENROUTER_API_KEY
177+
Content-Type: application/json
178+
179+
{
180+
"model": "openrouter-latest",
181+
"prompt": "<<PROMPT>>",
182+
"temperature": 0.7,
183+
"max_tokens": 150,
184+
"top_p": 0.9,
185+
"frequency_penalty": 0,
186+
"presence_penalty": 0
187+
}
174188
`,
175189

176190
]
@@ -190,6 +204,7 @@ let LLM_CONFIGS = [
190204
{ name: 'Claude', prompts: 40000, logo: '/icons/claude.png' },
191205
{ name: 'Cohere', prompts: 40000, logo: '/icons/cohere.png' },
192206
{ name: 'Azure OpenAI', prompts: 40000, logo: '/icons/azureai.png' },
207+
{ name: 'OpenRouter.ai', prompts: 40000, logo: '/icons/openrouter.png' },
193208
{ name: 'assemblyai', prompts: 40000, logo: fallbackIcon },
194209
];
195210
function has_image(spec) {

0 commit comments

Comments
 (0)