feat: add supports for open router (#1422)

This commit is contained in:
Junyan Qin (Chin)
2025-05-14 21:28:33 +08:00
committed by GitHub
parent 20a62fcf69
commit f376c9703a
3 changed files with 55 additions and 0 deletions
@@ -0,0 +1,28 @@
apiVersion: v1
kind: LLMAPIRequester
metadata:
name: openrouter-chat-completions
label:
en_US: OpenRouter
zh_Hans: OpenRouter
icon: openrouter.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://openrouter.ai/api/v1"
- name: timeout
label:
en_US: Timeout
zh_Hans: 超时时间
type: integer
required: true
default: 120
execution:
python:
path: ./openrouterchatcmpl.py
attr: OpenRouterChatCompletions