Skip to content

Conversation

g-linville
Copy link
Member

No description provided.

@@ -270,6 +270,30 @@ async def add_dataset_element(self, workspace_id: str, datasetID: str, elementNa
)
return DatasetElementMeta.model_validate_json(res)

async def add_dataset_elements(self, workspace_id: str, datasetID: str, elements: List[DatasetElement]) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workspace_id should be optional

Suggested change
async def add_dataset_elements(self, workspace_id: str, datasetID: str, elements: List[DatasetElement]) -> str:
async def add_dataset_elements(self, datasetID: str, elements: List[DatasetElement], workspace_id: str = "") -> str:

@g-linville g-linville merged commit b50cbe6 into gptscript-ai:main Oct 30, 2024
2 checks passed
@g-linville g-linville deleted the add-dataset-elements branch October 30, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants