google-gemini / generative-ai-js

The official Node.js / Typescript library for the Google Gemini API
https://ai.google.dev/
Apache License 2.0
502 stars 96 forks source link

Error on import { GoogleAIFileManager } from "@google/generative-ai/files"; #184

Closed antoniovini47 closed 2 days ago

antoniovini47 commented 2 days ago

Description of the bug:

Different locations on Gemini API, it's suggested to use

import { GoogleAIFileManager } from "@google/generative-ai/files";

but instead, for the latest version of "@google/generative-ai"

you should use

import { GoogleAIFileManager } from "@google/generative-ai/server";

it was a "minor change" made on 0.13.0 version, here it is the only place that this change was announced:

image

"@google/generative-ai/CHANGELOG.md"

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response