{"record":{"id":"ed5682b603d35ce2","repo":"vercel/ai","slug":"file-parts-with-provider-references-ed5682","errorCode":null,"errorMessage":"file parts with provider references","messagePattern":"file parts with provider references","errorType":"exception","errorClass":"UnsupportedFunctionalityError","httpStatus":null,"severity":"error","filePath":"packages/cohere/src/convert-to-cohere-chat-prompt.ts","lineNumber":78,"sourceCode":"                    schema: cohereImagePartProviderOptions,\n                  })) ?? {};\n\n                userContentParts.push({\n                  type: 'image_url',\n                  image_url: {\n                    url,\n                    ...(cohereOptions.detail\n                      ? { detail: cohereOptions.detail }\n                      : {}),\n                  },\n                });\n                break;\n              }\n\n              let textContent: string;\n              switch (part.data.type) {\n                case 'reference': {\n                  throw new UnsupportedFunctionalityError({\n                    functionality: 'file parts with provider references',\n                  });\n                }\n                case 'url': {\n                  throw new UnsupportedFunctionalityError({\n                    functionality: 'File URL data',\n                    message:\n                      'URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue.',\n                  });\n                }\n                case 'text': {\n                  textContent = part.data.text;\n                  break;\n                }\n                case 'data': {\n                  textContent =\n                    typeof part.data.data === 'string'\n                      ? part.data.data","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/cohere/src/convert-to-cohere-chat-prompt.ts#L60-L96","documentation":"Error \"file parts with provider references\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/cohere/src/convert-to-cohere-chat-prompt.ts:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}