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
pull/20230/head^2
Eugene Yurtsev 6 months ago committed by GitHub
parent b972f394c8
commit fe35e13083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -76,7 +76,7 @@ def test_loads_llmchain_with_non_serializable_arg() -> None:
model="davinci",
temperature=0.5,
openai_api_key="hello",
http_client=NotSerializable,
model_kwargs={"a": NotSerializable},
)
prompt = PromptTemplate.from_template("hello {name}!")
chain = LLMChain(llm=llm, prompt=prompt)

Loading…
Cancel
Save