From 863f2bfcfd6e2d159a3d41074c54ef39c56944b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E9=A3=8E?= Date: Fri, 14 Feb 2025 18:24:05 +0800 Subject: [PATCH] feat: add moonshot-v1-auto and vision model --- .../moonshot/llm/_position.yaml | 4 ++ .../llm/moonshot-v1-128k-vision-preview.yaml | 41 +++++++++++++++++++ .../llm/moonshot-v1-32k-vision-preview.yaml | 41 +++++++++++++++++++ .../llm/moonshot-v1-8k-vision-preview.yaml | 41 +++++++++++++++++++ .../moonshot/llm/moonshot-v1-auto.yaml | 40 ++++++++++++++++++ 5 files changed, 167 insertions(+) create mode 100644 api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k-vision-preview.yaml create mode 100644 api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k-vision-preview.yaml create mode 100644 api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k-vision-preview.yaml create mode 100644 api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-auto.yaml diff --git a/api/core/model_runtime/model_providers/moonshot/llm/_position.yaml b/api/core/model_runtime/model_providers/moonshot/llm/_position.yaml index 1810ec61d68e89..59ca6bbc2a99aa 100644 --- a/api/core/model_runtime/model_providers/moonshot/llm/_position.yaml +++ b/api/core/model_runtime/model_providers/moonshot/llm/_position.yaml @@ -1,3 +1,7 @@ +- moonshot-v1-auto - moonshot-v1-8k - moonshot-v1-32k - moonshot-v1-128k +- moonshot-v1-8k-vision-preview +- moonshot-v1-32k-vision-preview +- moonshot-v1-128k-vision-preview diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k-vision-preview.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k-vision-preview.yaml new file mode 100644 index 00000000000000..7c57d743a88b37 --- /dev/null +++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-128k-vision-preview.yaml @@ -0,0 +1,41 @@ +model: moonshot-v1-128k-vision-preview +label: + zh_Hans: moonshot-v1-128k-vision-preview + en_US: moonshot-v1-128k-vision-preview +model_type: llm +features: + - agent-thought + - tool-call + - multi-tool-call + - stream-tool-call + - vision +model_properties: + mode: chat + context_size: 128000 +parameter_rules: + - name: temperature + use_template: temperature + - name: top_p + use_template: top_p + - name: max_tokens + use_template: max_tokens + default: 1024 + min: 1 + max: 128000 + - name: response_format + label: + zh_Hans: 回复格式 + en_US: Response Format + type: string + help: + zh_Hans: 指定模型必须输出的格式 + en_US: specifying the format that the model must output + required: false + options: + - text + - json_object +pricing: + input: '0.06' + output: '0.06' + unit: '0.001' + currency: RMB diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k-vision-preview.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k-vision-preview.yaml new file mode 100644 index 00000000000000..f68317da5f2d36 --- /dev/null +++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-32k-vision-preview.yaml @@ -0,0 +1,41 @@ +model: moonshot-v1-32k-vision-preview +label: + zh_Hans: moonshot-v1-32k-vision-preview + en_US: moonshot-v1-32k-vision-preview +model_type: llm +features: + - agent-thought + - tool-call + - multi-tool-call + - stream-tool-call + - vision +model_properties: + mode: chat + context_size: 32000 +parameter_rules: + - name: temperature + use_template: temperature + - name: top_p + use_template: top_p + - name: max_tokens + use_template: max_tokens + default: 1024 + min: 1 + max: 32000 + - name: response_format + label: + zh_Hans: 回复格式 + en_US: Response Format + type: string + help: + zh_Hans: 指定模型必须输出的格式 + en_US: specifying the format that the model must output + required: false + options: + - text + - json_object +pricing: + input: '0.024' + output: '0.024' + unit: '0.001' + currency: RMB diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k-vision-preview.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k-vision-preview.yaml new file mode 100644 index 00000000000000..edca85a8844200 --- /dev/null +++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-8k-vision-preview.yaml @@ -0,0 +1,41 @@ +model: moonshot-v1-8k-vision-preview +label: + zh_Hans: moonshot-v1-8k-vision-preview + en_US: moonshot-v1-8k-vision-preview +model_type: llm +features: + - agent-thought + - tool-call + - multi-tool-call + - stream-tool-call + - vision +model_properties: + mode: chat + context_size: 8192 +parameter_rules: + - name: temperature + use_template: temperature + - name: top_p + use_template: top_p + - name: max_tokens + use_template: max_tokens + default: 512 + min: 1 + max: 8192 + - name: response_format + label: + zh_Hans: 回复格式 + en_US: Response Format + type: string + help: + zh_Hans: 指定模型必须输出的格式 + en_US: specifying the format that the model must output + required: false + options: + - text + - json_object +pricing: + input: '0.012' + output: '0.012' + unit: '0.001' + currency: RMB diff --git a/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-auto.yaml b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-auto.yaml new file mode 100644 index 00000000000000..c9de9bf983aa72 --- /dev/null +++ b/api/core/model_runtime/model_providers/moonshot/llm/moonshot-v1-auto.yaml @@ -0,0 +1,40 @@ +model: moonshot-v1-auto +label: + zh_Hans: moonshot-v1-auto + en_US: moonshot-v1-auto +model_type: llm +features: + - agent-thought + - tool-call + - multi-tool-call + - stream-tool-call +model_properties: + mode: chat + context_size: 128000 +parameter_rules: + - name: temperature + use_template: temperature + - name: top_p + use_template: top_p + - name: max_tokens + use_template: max_tokens + default: 1024 + min: 1 + max: 128000 + - name: response_format + label: + zh_Hans: 回复格式 + en_US: Response Format + type: string + help: + zh_Hans: 指定模型必须输出的格式 + en_US: specifying the format that the model must output + required: false + options: + - text + - json_object +pricing: + input: '0.012' + output: '0.012' + unit: '0.001' + currency: RMB