Closed Martin-Matchory closed 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
Hello @Martin-Matchory Thank you for your feedback. Yes, this method was not defined. This method was added with version 1.0.7.
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