From 646858ea08778c218fe95904c8433ef884eb47a1 Mon Sep 17 00:00:00 2001 From: jeessy2 <6205259+jeessy2@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:13:25 -0700 Subject: [PATCH] feat: Vision switch functionality is provided on OpenRouter (#3564) --- .../openrouter/openrouter.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/core/model_runtime/model_providers/openrouter/openrouter.yaml b/api/core/model_runtime/model_providers/openrouter/openrouter.yaml index 48a70700bb..df7d762a6f 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: 否