forked from Archives/langchain
Pass Dataset Name by Name not Position (#5108)
Pass dataset name by name
This commit is contained in:
parent
de6a401a22
commit
87bba2e8d3
@ -342,7 +342,7 @@ class LangChainPlusClient(BaseSettings):
|
||||
) -> Example:
|
||||
"""Create a dataset example in the LangChain+ API."""
|
||||
if dataset_id is None:
|
||||
dataset_id = self.read_dataset(dataset_name).id
|
||||
dataset_id = self.read_dataset(dataset_name=dataset_name).id
|
||||
|
||||
data = {
|
||||
"inputs": inputs,
|
||||
|
Loading…
Reference in New Issue
Block a user