GoogleCloudPlatform / firebase-extensions

Apache License 2.0
74 stars 36 forks source link

fix(firestore-multimodal-genai): fix vision support #495

Closed cabljac closed 5 months ago

cabljac commented 5 months ago

This PR fixes an issue where the new gemini vision model names aren't supported by the extension.

This PR contains a breaking change: there is no more default value for IMAGE_FIELD. The new behaviour is that the presence of this field determines whether the extension looks for images.

(The alternatives considered were to track the model names, which we've established is something we do not want to do, or introduce a new parameter, which is just generally bad to do)

fixes https://github.com/GoogleCloudPlatform/firebase-extensions/issues/492