{"record":{"id":"7ea0dbc388e61c08","repo":"vercel/ai","slug":"file-parts-with-provider-references-functionalit-7ea0db","errorCode":null,"errorMessage":"'file parts with provider references' functionality not supported.","messagePattern":"'file parts with provider references' functionality not supported\\.","errorType":"exception","errorClass":"UnsupportedFunctionalityError","httpStatus":null,"severity":"error","filePath":"packages/groq/src/convert-to-groq-chat-messages.ts","lineNumber":40,"sourceCode":"      }\n\n      case 'user': {\n        if (content.length === 1 && content[0].type === 'text') {\n          messages.push({ role: 'user', content: content[0].text });\n          break;\n        }\n\n        messages.push({\n          role: 'user',\n          content: content.map(part => {\n            switch (part.type) {\n              case 'text': {\n                return { type: 'text', text: part.text };\n              }\n              case 'file': {\n                switch (part.data.type) {\n                  case 'reference': {\n                    throw new UnsupportedFunctionalityError({\n                      functionality: 'file parts with provider references',\n                    });\n                  }\n                  case 'text': {\n                    throw new UnsupportedFunctionalityError({\n                      functionality: 'text file parts',\n                    });\n                  }\n                  case 'url':\n                  case 'data': {\n                    if (getTopLevelMediaType(part.mediaType) !== 'image') {\n                      throw new UnsupportedFunctionalityError({\n                        functionality: 'Non-image file content parts',\n                      });\n                    }\n\n                    return {\n                      type: 'image_url',","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/groq/src/convert-to-groq-chat-messages.ts#L22-L58","documentation":"Error \"'file parts with provider references' functionality not supported.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/groq/src/convert-to-groq-chat-messages.ts:40 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"}