mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-02 03:15:11 +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",
|
||||
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…
Reference in New Issue
Block a user