vercel/ai · error · NoSuchModelError
AI_NoSuchModelError
AI_NoSuchModelError
Error message
No such embeddingModel: ${modelId} What it means
Error "No such embeddingModel: ${modelId}" thrown in vercel/ai.
Source
Thrown at packages/groq/src/groq-provider.ts:126
const createTranscriptionModel = (modelId: GroqTranscriptionModelId) => {
return new GroqTranscriptionModel(modelId, {
provider: 'groq.transcription',
url: ({ path }) => `${baseURL}${path}`,
headers: getHeaders,
fetch: options.fetch,
});
};
const provider = function (modelId: GroqChatModelId) {
return createLanguageModel(modelId);
};
provider.specificationVersion = 'v4' as const;
provider.languageModel = createLanguageModel;
provider.chat = createChatModel;
provider.embeddingModel = (modelId: string) => {
throw new NoSuchModelError({ modelId, modelType: 'embeddingModel' });
};
provider.textEmbeddingModel = provider.embeddingModel;
provider.imageModel = (modelId: string) => {
throw new NoSuchModelError({ modelId, modelType: 'imageModel' });
};
provider.transcription = createTranscriptionModel;
provider.transcriptionModel = createTranscriptionModel;
provider.tools = groqTools;
return provider;
}
/**
* Default Groq provider instance.
*/
export const groq = createGroq();
View on GitHub (pinned to 69428b1f8b)
When it happens
Trigger: Thrown at packages/groq/src/groq-provider.ts:126 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30).
Data as JSON: /api/errors/c8d9805d10be60a2.
Report an issue: GitHub.