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:
|
) -> 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user