Skip to content

Commit

Permalink
langchain[patch]: Update unit test (#20228)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eyurtsev committed Apr 9, 2024
1 parent b972f39 commit fe35e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/tests/unit_tests/load/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe35e13

Please sign in to comment.