Add field type for headers in SearxSearchWrapperComponent
This commit is contained in:
parent
5cc8afc557
commit
7611ec7f94
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue