{"record":{"id":"a44ff528a1891f62","repo":"vercel/ai","slug":"file-url-data-a44ff5","errorCode":null,"errorMessage":"File URL data","messagePattern":"File URL data","errorType":"exception","errorClass":"UnsupportedFunctionalityError","httpStatus":null,"severity":"error","filePath":"packages/cohere/src/convert-to-cohere-chat-prompt.ts","lineNumber":83,"sourceCode":"                  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\n                      : new TextDecoder().decode(part.data.data);\n                  break;\n                }\n              }\n","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/cohere/src/convert-to-cohere-chat-prompt.ts#L65-L101","documentation":"Error \"File URL data\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/cohere/src/convert-to-cohere-chat-prompt.ts:83 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"}