瀏覽代碼

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

jeessy2 1 年之前
父節點
當前提交
646858ea08
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      api/core/model_runtime/model_providers/openrouter/openrouter.yaml

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