Set maxEmbeddingsInput and embeddingsVectorSize in EmbeddingsTraint and use in with default values in OpenAiBasedProviderClientBase
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3535961. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !756 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently the embeddings interface requires you to set maxEmbeddingsInput and embeddingsVectorSize. In the OpenAiBasedProviderClientBase they might or might not be needed depending on if the models support embeddings.</p> <p>However since we add the logic for embeddings, we should have those methods pre-filled out.</p> <p>For embeddingsVectorSize we already in the EmbeddingsTrait, we should include that in the OpenAiBasedProviderClientBase and also fill in some random value (1024) in the maxEmbeddingsInput, so cllents that doens't implement this, doesn't need to fill it out.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>* Add maxEmbeddingsInput that returns 1024 to EmbeddingsTrait.<br> * Add EmbeddingsTrait to OpenAiBasedProviderClient</p>
issue