mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +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
|
llm_chain: LLMChain
|
||||||
requests_wrapper: TextRequestsWrapper = Field(
|
requests_wrapper: TextRequestsWrapper = Field(
|
||||||
default_factory=TextRequestsWrapper, exclude=True
|
default_factory=lambda: TextRequestsWrapper(headers=DEFAULT_HEADERS),
|
||||||
|
exclude=True,
|
||||||
)
|
)
|
||||||
text_length: int = 8000
|
text_length: int = 8000
|
||||||
requests_key: str = "requests_result" #: :meta private:
|
requests_key: str = "requests_result" #: :meta private:
|
||||||
|
Loading…
Reference in New Issue
Block a user