From 1e6e8b446d62b46552e92ecd1dd184fa6d6907fb Mon Sep 17 00:00:00 2001 From: Weaxs <459312872@qq.com> Date: Tue, 30 Apr 2024 02:02:01 -0700 Subject: [PATCH] feat: support minimax abab6.5, abab6.5s (#4012) --- .../minimax/llm/abab6.5-chat.yaml | 37 +++++++++++++++++++ .../minimax/llm/abab6.5s-chat.yaml | 37 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml create mode 100644 api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml diff --git a/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml new file mode 100644 index 0000000000..ead61fb7ca --- /dev/null +++ b/api/core/model_runtime/model_providers/minimax/llm/abab6.5-chat.yaml @@ -0,0 +1,37 @@ +model: abab6.5-chat +label: + en_US: Abab6.5-Chat +model_type: llm +features: + - agent-thought + - tool-call + - stream-tool-call +model_properties: + mode: chat + context_size: 8192 +parameter_rules: + - name: temperature + use_template: temperature + min: 0.01 + max: 1 + default: 0.1 + - name: top_p + use_template: top_p + min: 0.01 + max: 1 + default: 0.95 + - name: max_tokens + use_template: max_tokens + required: true + default: 2048 + min: 1 + max: 8192 + - name: presence_penalty + use_template: presence_penalty + - name: frequency_penalty + use_template: frequency_penalty +pricing: + input: '0.03' + output: '0.03' + unit: '0.001' + currency: RMB diff --git a/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml b/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml new file mode 100644 index 0000000000..2cd98abb22 --- /dev/null +++ b/api/core/model_runtime/model_providers/minimax/llm/abab6.5s-chat.yaml @@ -0,0 +1,37 @@ +model: abab6.5s-chat +label: + en_US: Abab6.5s-Chat +model_type: llm +features: + - agent-thought + - tool-call + - stream-tool-call +model_properties: + mode: chat + context_size: 245760 +parameter_rules: + - name: temperature + use_template: temperature + min: 0.01 + max: 1 + default: 0.1 + - name: top_p + use_template: top_p + min: 0.01 + max: 1 + default: 0.95 + - name: max_tokens + use_template: max_tokens + required: true + default: 2048 + min: 1 + max: 245760 + - name: presence_penalty + use_template: presence_penalty + - name: frequency_penalty + use_template: frequency_penalty +pricing: + input: '0.01' + output: '0.01' + unit: '0.001' + currency: RMB