-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
Description
I would like to request a wrapEmbeddingModel function similar to the existing wrapLanguageModel function to allow overwriting the dimensions for an embedding model:
export const openai = customProvider({
embeddingModels: {
'text-embedding-3-large': wrapEmbeddingModel({
model: openai('text-embedding-3-large'),
middleware: defaultSettingsMiddleware({
settings: {
providerOptions: {
openai: {
dimensions: 1536
},
},
},
}),
}),
},
});AI SDK Version
No response
Reactions are currently unavailable