소스 검색

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