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
192 stars 41 forks source link

Use embedding-001 model with batchEmbedContents: #21

Closed Martin-Matchory closed 1 month ago

Martin-Matchory commented 5 months 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

aydinfatih commented 1 month ago

Hello @Martin-Matchory Thank you for your feedback. Yes, this method was not defined. This method was added with version 1.0.7.