Fixes #6282 

1 liner to fix default http headers not passed by `LLMRequestsChain`
searx_updates
Pierre Alexandre SCHEMBRI 11 months ago committed by GitHub
parent 23cdebddc4
commit 9ca11c06b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,8 @@ class LLMRequestsChain(Chain):
llm_chain: LLMChain
requests_wrapper: TextRequestsWrapper = Field(
default_factory=TextRequestsWrapper, exclude=True
default_factory=lambda: TextRequestsWrapper(headers=DEFAULT_HEADERS),
exclude=True,
)
text_length: int = 8000
requests_key: str = "requests_result" #: :meta private:

Loading…
Cancel
Save