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

Add canonical File API samples #204

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Add canonical File API samples #204

merged 3 commits into from
Jul 10, 2024

Conversation

hsubox76
Copy link
Collaborator

@hsubox76 hsubox76 commented Jul 9, 2024

filename region tag
files files_create_image
files files_create_audio
files files_create_text
files files_create_video
files files_list
files files_get
files files_delete

Python equivalent samples page: https://github.com/google-gemini/generative-ai-python/blob/main/samples/files.py

Base automatically changed from ch-samples-counttokens to main July 10, 2024 16:34
@hsubox76 hsubox76 requested a review from dlarocque July 10, 2024 17:48
@hsubox76 hsubox76 marked this pull request as ready for review July 10, 2024 17:48
Comment on lines 230 to 237
// Comment out or delete any sample cases you don't want to run.
// await filesCreateImage();
// await filesCreateAudio();
// await filesCreateText();
// await filesCreateVideo();
// await filesList();
// await filesGet();
// await filesDelete();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we want to uncomment these

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, thanks again.

@hsubox76 hsubox76 merged commit 812037d into main Jul 10, 2024
8 checks passed
@hsubox76 hsubox76 deleted the ch-samples-files branch July 10, 2024 20:12
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.

2 participants