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.

feat:add gpt-3.5-turbo-0125 (#2347)

呆萌闷油瓶cd078a62640b
diff --git a/api/core/model_runtime/model_providers/openai/llm/_position.yaml b/api/core/model_runtime/model_providers/openai/llm/_position.yaml
index 3c327084172..ceb7d7cd77b 100644
--- a/api/core/model_runtime/model_providers/openai/llm/_position.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/_position.yaml
@@ -4,6 +4,7 @@
- gpt-4-1106-preview
- gpt-4-0125-preview
- gpt-4-vision-preview
+- gpt-3.5-turbo-0125
- gpt-3.5-turbo
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-16k-0613
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml
new file mode 100644
index 00000000000..3e40db01f95
--- /dev/null
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-0125.yaml
@@ -0,0 +1,31 @@
+model: gpt-3.5-turbo-0125
+label:
+ zh_Hans: gpt-3.5-turbo-0125
+ en_US: gpt-3.5-turbo-0125
+model_type: llm
+features:
+ - multi-tool-call
+ - agent-thought
+ - stream-tool-call
+model_properties:
+ mode: chat
+ context_size: 16385
+parameter_rules:
+ - name: temperature
+ use_template: temperature
+ - name: top_p
+ use_template: top_p
+ - name: presence_penalty
+ use_template: presence_penalty
+ - name: frequency_penalty
+ use_template: frequency_penalty
+ - name: max_tokens
+ use_template: max_tokens
+ default: 512
+ min: 1
+ max: 4096
+pricing:
+ input: '0.0005'
+ output: '0.0015'
+ unit: '0.001'
+ currency: USD
diff --git a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
index 4b5d31c7749..499792e39d9 100644
--- a/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
+++ b/api/core/model_runtime/model_providers/openai/llm/gpt-3.5-turbo-1106.yaml
@@ -23,7 +23,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
- max: 16385
+ max: 4096
pricing:
input: '0.001'
output: '0.002'