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

genai: add convenience client.UploadFileFromPath method #203

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

eliben
Copy link
Member

@eliben eliben commented Aug 2, 2024

Sketch for a new convenience method to upload a file from a path. This would let us remove the uploadFile helpers from tests and examples. Examples & snippets would all be "inline" without calling out to a function.

genai/files.go Show resolved Hide resolved
@eliben eliben merged commit 7d222a0 into main Aug 5, 2024
2 checks passed
@eliben eliben deleted the upload-file-path branch August 5, 2024 13:48
@eliben
Copy link
Member Author

eliben commented Aug 5, 2024

Will convert other uses of uploadFile in examples as a followup

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