Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add add_dataset_elements function #63

Merged
merged 1 commit into from
Oct 30, 2024

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