Add field type for headers in SearxSearchWrapperComponent

This commit is contained in:
anovazzi1 2024-01-09 18:56:47 -03:00
commit 7611ec7f94

View file

@ -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 <token>"}'
"value": '{"Authorization": "Bearer <token>"}'
},
}
@ -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