google-gemini-php / client

⚡️ Gemini PHP is a community-maintained PHP API client that allows you to interact with the Gemini AI API.
MIT License
169 stars 19 forks source link

Use embedding-001 model with batchEmbedContents: #21

Open Martin-Matchory opened 1 month ago

Martin-Matchory commented 1 month ago

In the readme is batchEmbedContents mentioned:

Use the embedding-001 model with either embedContents or batchEmbedContents:

But there seems to be no way to use batchEmbedContents (only embedContents as a string is possible)

GeminiAPI\EmbeddingModel::embedContent(): Argument #1 must be of type GeminiAPI\Resources\Parts\PartInterface, array given