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.

Add new OpenAI embedding models (#2217)

Chenhe Gu8be7d8a63586
diff --git a/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-large.yaml b/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-large.yaml
new file mode 100644
index 00000000000..9489170fdea
--- /dev/null
+++ b/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-large.yaml
@@ -0,0 +1,9 @@
+model: text-embedding-3-large
+model_type: text-embedding
+model_properties:
+ context_size: 8191
+ max_chunks: 32
+pricing:
+ input: '0.00013'
+ unit: '0.001'
+ currency: USD
diff --git a/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-small.yaml b/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-small.yaml
new file mode 100644
index 00000000000..586ba2b28f9
--- /dev/null
+++ b/api/core/model_runtime/model_providers/openai/text_embedding/text-embedding-3-small.yaml
@@ -0,0 +1,9 @@
+model: text-embedding-3-small
+model_type: text-embedding
+model_properties:
+ context_size: 8191
+ max_chunks: 32
+pricing:
+ input: '0.00002'
+ unit: '0.001'
+ currency: USD