mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-05 04:38:26 +00:00
langchain[patch]: Update unit test (#20228)
This unit test fails likely validation by the openai client. Newer openai library seems to be doing more validation so the existing test fails since http_client needs to be of httpx instance
This commit is contained in:
parent
b972f394c8
commit
fe35e13083
@ -76,7 +76,7 @@ def test_loads_llmchain_with_non_serializable_arg() -> None:
|
|||||||
model="davinci",
|
model="davinci",
|
||||||
temperature=0.5,
|
temperature=0.5,
|
||||||
openai_api_key="hello",
|
openai_api_key="hello",
|
||||||
http_client=NotSerializable,
|
model_kwargs={"a": NotSerializable},
|
||||||
)
|
)
|
||||||
prompt = PromptTemplate.from_template("hello {name}!")
|
prompt = PromptTemplate.from_template("hello {name}!")
|
||||||
chain = LLMChain(llm=llm, prompt=prompt)
|
chain = LLMChain(llm=llm, prompt=prompt)
|
||||||
|
Loading…
Reference in New Issue
Block a user