From 0aa072b4e8935a7d5eb764f4a5c61f3d192040f6 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 28 Feb 2025 22:47:34 +0800 Subject: [PATCH] feat: add manifests for all requesters --- .../modelmgr/requesters/anthropicmsgs.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/bailianchatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/chatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/deepseekchatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/giteeaichatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/lmstudiochatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/moonshotchatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/ollamachat.yaml | 34 +++++++++++++++++++ .../requesters/siliconflowchatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/volcarkchatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/xaichatcmpl.yaml | 34 +++++++++++++++++++ .../modelmgr/requesters/zhipuaichatcmpl.yaml | 34 +++++++++++++++++++ 12 files changed, 408 insertions(+) create mode 100644 pkg/provider/modelmgr/requesters/anthropicmsgs.yaml create mode 100644 pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/chatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/ollamachat.yaml create mode 100644 pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/xaichatcmpl.yaml create mode 100644 pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml diff --git a/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml new file mode 100644 index 00000000..934db905 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: anthropic-messages + label: + en_US: Anthropic + zh_CN: Anthropic +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.anthropic.com/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./anthropicmsgs.py + attr: AnthropicMessages diff --git a/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml new file mode 100644 index 00000000..0107d1a6 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: bailian-chat-completions + label: + en_US: Aliyun Bailian + zh_CN: 阿里云百炼 +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://dashscope.aliyuncs.com/compatible-mode/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./bailianchatcmpl.py + attr: BailianChatCompletions diff --git a/pkg/provider/modelmgr/requesters/chatcmpl.yaml b/pkg/provider/modelmgr/requesters/chatcmpl.yaml new file mode 100644 index 00000000..9e623542 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/chatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: openai-chat-completions + label: + en_US: OpenAI + zh_CN: OpenAI +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.openai.com/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./chatcmpl.py + attr: OpenAIChatCompletions \ No newline at end of file diff --git a/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml new file mode 100644 index 00000000..2eb56be4 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: deepseek-chat-completions + label: + en_US: DeepSeek + zh_CN: 深度求索 +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.deepseek.com" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./deepseekchatcmpl.py + attr: DeepseekChatCompletions \ No newline at end of file diff --git a/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml new file mode 100644 index 00000000..67178cd1 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: gitee-ai-chat-completions + label: + en_US: Gitee AI + zh_CN: Gitee AI +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://ai.gitee.com/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./giteeaichatcmpl.py + attr: GiteeAIChatCompletions \ No newline at end of file diff --git a/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml new file mode 100644 index 00000000..2b18e92c --- /dev/null +++ b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: lmstudio-chat-completions + label: + en_US: LM Studio + zh_CN: LM Studio +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "http://127.0.0.1:1234/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./lmstudiochatcmpl.py + attr: LmStudioChatCompletions diff --git a/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml new file mode 100644 index 00000000..2680cea1 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: moonshot-chat-completions + label: + en_US: Moonshot + zh_CN: 月之暗面 +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.moonshot.com/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./moonshotchatcmpl.py + attr: MoonshotChatCompletions diff --git a/pkg/provider/modelmgr/requesters/ollamachat.yaml b/pkg/provider/modelmgr/requesters/ollamachat.yaml new file mode 100644 index 00000000..9c2e83f3 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/ollamachat.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: ollama-chat + label: + en_US: Ollama + zh_CN: Ollama +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "http://127.0.0.1:11434" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./ollamachat.py + attr: OllamaChatCompletions diff --git a/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml new file mode 100644 index 00000000..02b08fea --- /dev/null +++ b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: siliconflow-chat-completions + label: + en_US: SiliconFlow + zh_CN: 硅基流动 +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.siliconflow.cn/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./siliconflowchatcmpl.py + attr: SiliconFlowChatCompletions diff --git a/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml new file mode 100644 index 00000000..9beee799 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: volcark-chat-completions + label: + en_US: Volc Engine Ark + zh_CN: 火山方舟 +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://ark.cn-beijing.volces.com/api/v3" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./volcarkchatcmpl.py + attr: VolcArkChatCompletions diff --git a/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml new file mode 100644 index 00000000..a9eee84d --- /dev/null +++ b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: xai-chat-completions + label: + en_US: xAI + zh_CN: xAI +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://api.x.ai/v1" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./xaichatcmpl.py + attr: XaiChatCompletions diff --git a/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml new file mode 100644 index 00000000..76ab63e9 --- /dev/null +++ b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: zhipuai-chat-completions + label: + en_US: ZhipuAI + zh_CN: 智谱 AI +spec: + config: + - name: base-url + label: + en_US: Base URL + zh_CN: 基础 URL + type: string + required: true + default: "https://open.bigmodel.cn/api/paas/v4" + - name: args + label: + en_US: Args + zh_CN: 附加参数 + type: object + required: true + default: {} + - name: timeout + label: + en_US: Timeout + zh_CN: 超时时间 + type: int + required: true + default: 120 +execution: + python: + path: ./zhipuaichatcmpl.py + attr: ZhipuAIChatCompletions