Pass Dataset Name by Name not Position (#5108)

Pass dataset name by name
This commit is contained in:
Zander Chase 2023-05-22 18:21:39 -07:00 committed by GitHub
parent de6a401a22
commit 87bba2e8d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,7 +342,7 @@ class LangChainPlusClient(BaseSettings):
) -> Example: ) -> Example:
"""Create a dataset example in the LangChain+ API.""" """Create a dataset example in the LangChain+ API."""
if dataset_id is None: if dataset_id is None:
dataset_id = self.read_dataset(dataset_name).id dataset_id = self.read_dataset(dataset_name=dataset_name).id
data = { data = {
"inputs": inputs, "inputs": inputs,