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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
add llm: ernie-4.0-turbo-128k of wenxin (#10135)
Coal Pigeon4d5546953ad5
diff --git a/api/core/model_runtime/model_providers/wenxin/_common.py b/api/core/model_runtime/model_providers/wenxin/_common.pyindex 1a4cc153718..c77a499982e 100644--- a/api/core/model_runtime/model_providers/wenxin/_common.py+++ b/api/core/model_runtime/model_providers/wenxin/_common.py@@ -115,6 +115,7 @@ class _CommonWenxin:"ernie-character-8k-0321": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-char-8k","ernie-4.0-turbo-8k": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-8k","ernie-4.0-turbo-8k-preview": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-8k-preview",+ "ernie-4.0-turbo-128k": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-128k","yi_34b_chat": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/yi_34b_chat","embedding-v1": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings/embedding-v1","bge-large-en": "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings/bge_large_en",diff --git a/api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-turbo-128k.yaml b/api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-turbo-128k.yamlnew file mode 100644index 00000000000..f8d56406d91--- /dev/null+++ b/api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-turbo-128k.yaml@@ -0,0 +1,40 @@+model: ernie-4.0-turbo-128k+label:+ en_US: Ernie-4.0-turbo-128K+model_type: llm+features:+ - agent-thought+model_properties:+ mode: chat+ context_size: 131072+parameter_rules:+ - name: temperature+ use_template: temperature+ min: 0.1+ max: 1.0+ default: 0.8+ - name: top_p+ use_template: top_p+ - name: max_tokens+ use_template: max_tokens+ default: 1024+ min: 2+ max: 4096+ - name: presence_penalty+ use_template: presence_penalty+ default: 1.0+ min: 1.0+ max: 2.0+ - name: frequency_penalty+ use_template: frequency_penalty+ - name: response_format+ use_template: response_format+ - name: disable_search+ label:+ zh_Hans: 禁用搜索+ en_US: Disable Search+ type: boolean+ help:+ zh_Hans: 禁用模型自行进行外部搜索。+ en_US: Disable the model to perform external search.+ required: false