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: Vision switch functionality is provided on OpenRouter (#3564)

jeessy2646858ea0877
diff --git a/api/core/model_runtime/model_providers/openrouter/openrouter.yaml b/api/core/model_runtime/model_providers/openrouter/openrouter.yaml
index 48a70700bbf..df7d762a6ff 100644
--- a/api/core/model_runtime/model_providers/openrouter/openrouter.yaml
+++ b/api/core/model_runtime/model_providers/openrouter/openrouter.yaml
@@ -73,3 +73,22 @@ model_credential_schema:
value: llm
default: "4096"
type: text-input
+ - variable: vision_support
+ show_on:
+ - variable: __model_type
+ value: llm
+ label:
+ zh_Hans: 是否支持 Vision
+ en_US: Vision Support
+ type: radio
+ required: false
+ default: 'no_support'
+ options:
+ - value: 'support'
+ label:
+ en_US: 'Yes'
+ zh_Hans: 是
+ - value: 'no_support'
+ label:
+ en_US: 'No'
+ zh_Hans: 否