Set maxEmbeddingsInput and embeddingsVectorSize in EmbeddingsTraint and use in with default values in OpenAiBasedProviderClientBase

Created on 15 July 2025, about 1 month ago

Problem/Motivation

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.

However since we add the logic for embeddings, we should have those methods pre-filled out.

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.

Proposed resolution

* Add maxEmbeddingsInput that returns 1024 to EmbeddingsTrait.
* Add EmbeddingsTrait to OpenAiBasedProviderClient

📌 Task
Status

Active

Version

1.2

Component

AI Core module

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024