Skip to content

v1.0.4

Choose a tag to compare

@hosseinhezami hosseinhezami released this 21 Dec 12:57
· 3 commits to master since this release

Add file method to BaseBuilder for specifying pre-uploaded file URIs with MIME types

This update introduces a new file method in BaseBuilder, allowing users to provide a direct file URI (e.g., from a previous independent upload via FileBuilder) along with the file type and MIME type. It sets corresponding params without triggering an upload.

In GeminiProvider's buildRequestBody, logic is added to check for these params and use the provided URI and MIME type instead of performing an upload, enabling seamless integration with existing uploaded files (e.g., in text generation flows).