From 7611ec7f9492d81c9f3fd434f96a4095bf5f226e Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 9 Jan 2024 18:56:47 -0300 Subject: [PATCH] Add field type for headers in SearxSearchWrapperComponent --- .../langflow/components/utilities/SearxSearchWrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/langflow/components/utilities/SearxSearchWrapper.py b/src/backend/langflow/components/utilities/SearxSearchWrapper.py index deaefe1a7..391e50401 100644 --- a/src/backend/langflow/components/utilities/SearxSearchWrapper.py +++ b/src/backend/langflow/components/utilities/SearxSearchWrapper.py @@ -1,4 +1,3 @@ - from langflow import CustomComponent from typing import Optional, Dict @@ -9,9 +8,10 @@ class SearxSearchWrapperComponent(CustomComponent): def build_config(self): return { "headers": { + "field_type":"dict", "display_name": "Headers", "multiline": True, - "default": '{"Authorization": "Bearer "}' + "value": '{"Authorization": "Bearer "}' }, } @@ -24,4 +24,4 @@ class SearxSearchWrapperComponent(CustomComponent): # Placeholder for actual SearxSearchWrapper instantiation # Since the actual SearxSearchWrapper class is not available, # it is assumed that it would be instantiated here with headers as an argument. - pass + pass \ No newline at end of file