You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: vertex-ai embeddings drop dimensions (no mapping to parameters.outputDimensionality) #14311
For an OpenAI embeddings request sent to provider: vertex-ai, the request converter keeps only input and drops everything else, including dimensions (openai-embeddings-to-vertex-predict.lua#L32-L66). The :predict body is always {"instances": [...]}, so gemini-embedding-001 always returns its default 3072 dimensions whatever the client asks for.
Expected Behavior
dimensions should map to Vertex's parameters.outputDimensionality, so the client gets the size it asked for, as it does from OpenAI through the same gateway.
Error Logs
No error: the vector is the wrong size. Direct :predict calls to gemini-embedding-001 (locations/global):
Activity