google-gemini / generative-ai-js

The official Node.js / Typescript library for the Google Gemini API
https://www.npmjs.com/package/@google/generative-ai
Apache License 2.0
679 stars 141 forks source link

Fix bug when no file name is provided for upload #135

Closed hsubox76 closed 4 months ago

hsubox76 commented 4 months ago

A bug in the logic caused the FileMetadata.name field to be filled with files/undefined instead of actually being left undefined when the user does not provide that value.