mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 16:13:25 +00:00
Fixes #6282 1 liner to fix default http headers not passed by `LLMRequestsChain`
This commit is contained in:
parent
23cdebddc4
commit
9ca11c06b7
@ -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…
Reference in New Issue
Block a user