Explorar el Código

feat: Vision switch functionality is provided on OpenRouter (#3564)

jeessy2 hace 1 año
padre
commit
646858ea08

+ 19 - 0
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: 否