vercel/ai · error · UnsupportedFunctionalityError
file parts with provider references
Error message
file parts with provider references
What it means
Error "file parts with provider references" thrown in vercel/ai.
Source
Thrown at packages/cohere/src/convert-to-cohere-chat-prompt.ts:78
schema: cohereImagePartProviderOptions,
})) ?? {};
userContentParts.push({
type: 'image_url',
image_url: {
url,
...(cohereOptions.detail
? { detail: cohereOptions.detail }
: {}),
},
});
break;
}
let textContent: string;
switch (part.data.type) {
case 'reference': {
throw new UnsupportedFunctionalityError({
functionality: 'file parts with provider references',
});
}
case 'url': {
throw new UnsupportedFunctionalityError({
functionality: 'File URL data',
message:
'URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue.',
});
}
case 'text': {
textContent = part.data.text;
break;
}
case 'data': {
textContent =
typeof part.data.data === 'string'
? part.data.dataView on GitHub (pinned to 69428b1f8b)
When it happens
Trigger: Thrown at packages/cohere/src/convert-to-cohere-chat-prompt.ts:78 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/ed5682b603d35ce2.
Report an issue: GitHub.