mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-16 09:48:04 +00:00
openai: fix loads unit test (#21542)
following changes to tests in core here: https://github.com/langchain-ai/langchain/pull/21342/files
This commit is contained in:
parent
d3ff9c5d6a
commit
4170e72a42
@ -5,7 +5,7 @@ from langchain_openai import ChatOpenAI, OpenAI
|
||||
|
||||
|
||||
def test_loads_openai_llm() -> None:
|
||||
llm = OpenAI(model="davinci", temperature=0.5, openai_api_key="hello")
|
||||
llm = OpenAI(model="davinci", temperature=0.5, openai_api_key="hello", top_p=0.8)
|
||||
llm_string = dumps(llm)
|
||||
llm2 = loads(llm_string, secrets_map={"OPENAI_API_KEY": "hello"})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user