Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

[Pixtral] Add new model ; add vision (#11231)

Tommy42d986b96dee
diff --git a/api/core/model_runtime/model_providers/mistralai/llm/_position.yaml b/api/core/model_runtime/model_providers/mistralai/llm/_position.yaml
index bdb06b7fff6..5702797ac44 100644
--- a/api/core/model_runtime/model_providers/mistralai/llm/_position.yaml
+++ b/api/core/model_runtime/model_providers/mistralai/llm/_position.yaml
@@ -1,3 +1,5 @@
+- pixtral-large-latest
+- pixtral-large-2411
- pixtral-12b-2409
- codestral-latest
- mistral-embed
diff --git a/api/core/model_runtime/model_providers/mistralai/llm/pixtral-12b-2409.yaml b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-12b-2409.yaml
index 0b002b49cac..9eb663bc313 100644
--- a/api/core/model_runtime/model_providers/mistralai/llm/pixtral-12b-2409.yaml
+++ b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-12b-2409.yaml
@@ -5,6 +5,7 @@ label:
model_type: llm
features:
- agent-thought
+ - vision
model_properties:
mode: chat
context_size: 128000
@@ -21,7 +22,7 @@ parameter_rules:
max: 1
- name: max_tokens
use_template: max_tokens
- default: 1024
+ default: 8192
min: 1
max: 8192
- name: safe_prompt
diff --git a/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-2411.yaml b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-2411.yaml
new file mode 100644
index 00000000000..606c9aa3319
--- /dev/null
+++ b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-2411.yaml
@@ -0,0 +1,52 @@
+model: pixtral-large-2411
+label:
+ zh_Hans: pixtral-large-2411
+ en_US: pixtral-large-2411
+model_type: llm
+features:
+ - agent-thought
+ - vision
+model_properties:
+ mode: chat
+ context_size: 128000
+parameter_rules:
+ - name: temperature
+ use_template: temperature
+ default: 0.7
+ min: 0
+ max: 1
+ - name: top_p
+ use_template: top_p
+ default: 1
+ min: 0
+ max: 1
+ - name: max_tokens
+ use_template: max_tokens
+ default: 8192
+ min: 1
+ max: 8192
+ - name: safe_prompt
+ default: false
+ type: boolean
+ help:
+ en_US: Whether to inject a safety prompt before all conversations.
+ zh_Hans: 是否开启提示词审查
+ label:
+ en_US: SafePrompt
+ zh_Hans: 提示词审查
+ - name: random_seed
+ type: int
+ help:
+ en_US: The seed to use for random sampling. If set, different calls will generate deterministic results.
+ zh_Hans: 当开启随机数种子以后,你可以通过指定一个固定的种子来使得回答结果更加稳定
+ label:
+ en_US: RandomSeed
+ zh_Hans: 随机数种子
+ default: 0
+ min: 0
+ max: 2147483647
+pricing:
+ input: '0.008'
+ output: '0.024'
+ unit: '0.001'
+ currency: USD
diff --git a/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-latest.yaml b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-latest.yaml
new file mode 100644
index 00000000000..4f0ed5ae5d7
--- /dev/null
+++ b/api/core/model_runtime/model_providers/mistralai/llm/pixtral-large-latest.yaml
@@ -0,0 +1,52 @@
+model: pixtral-large-latest
+label:
+ zh_Hans: pixtral-large-latest
+ en_US: pixtral-large-latest
+model_type: llm
+features:
+ - agent-thought
+ - vision
+model_properties:
+ mode: chat
+ context_size: 128000
+parameter_rules:
+ - name: temperature
+ use_template: temperature
+ default: 0.7
+ min: 0
+ max: 1
+ - name: top_p
+ use_template: top_p
+ default: 1
+ min: 0
+ max: 1
+ - name: max_tokens
+ use_template: max_tokens
+ default: 8192
+ min: 1
+ max: 8192
+ - name: safe_prompt
+ default: false
+ type: boolean
+ help:
+ en_US: Whether to inject a safety prompt before all conversations.
+ zh_Hans: 是否开启提示词审查
+ label:
+ en_US: SafePrompt
+ zh_Hans: 提示词审查
+ - name: random_seed
+ type: int
+ help:
+ en_US: The seed to use for random sampling. If set, different calls will generate deterministic results.
+ zh_Hans: 当开启随机数种子以后,你可以通过指定一个固定的种子来使得回答结果更加稳定
+ label:
+ en_US: RandomSeed
+ zh_Hans: 随机数种子
+ default: 0
+ min: 0
+ max: 2147483647
+pricing:
+ input: '0.008'
+ output: '0.024'
+ unit: '0.001'
+ currency: USD