{"record":{"id":"cb914af2322a03c6","repo":"FlowiseAI/Flowise","slug":"this-model-does-not-support-audio","errorCode":null,"errorMessage":"This model does not support audio","messagePattern":"This model does not support audio","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts","lineNumber":166,"sourceCode":"                            fileUri: block.url\n                        }\n                    }\n                }\n            }\n            if (block.source_type === 'base64') {\n                return {\n                    inlineData: {\n                        mimeType: block.mime_type ?? '',\n                        data: block.data\n                    }\n                }\n            }\n            throw new Error(`Unsupported source type: ${block.source_type}`)\n        },\n\n        fromStandardAudioBlock(block): FileDataPart | InlineDataPart {\n            if (!isMultimodalModel) {\n                throw new Error('This model does not support audio')\n            }\n            if (block.source_type === 'url') {\n                const data = parseBase64DataUrl({ dataUrl: block.url })\n                if (data) {\n                    return {\n                        inlineData: {\n                            mimeType: data.mime_type,\n                            data: data.data\n                        }\n                    }\n                } else {\n                    return {\n                        fileData: {\n                            mimeType: block.mime_type ?? '',\n                            fileUri: block.url\n                        }\n                    }\n                }","sourceCodeStart":148,"sourceCodeEnd":184,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts#L148-L184","documentation":"Thrown inside fromStandardAudioBlock (line 166) when an audio block is converted for a non-multimodal Gemini model. Same isMultimodalModel gate as the image/file blocks; only multimodal Gemini variants accept audio input.","triggerScenarios":"A standard audio content block is fed to a Gemini model whose _isMultimodalModel flag is false.","commonSituations":"Text-only Gemini model selected while the chatflow includes audio content, or audio routed to a model variant that lacks audio modality support.","solutions":["Use a multimodal, audio-capable Gemini model (e.g., gemini-1.5-pro, gemini-2.0-flash).","Strip audio blocks from the message history before this node, or transcribe audio to text upstream.","Verify the model name resolves to an audio-capable variant."],"exampleFix":"// before: model='gemini-1.0' + audio block -> throws\n// after:  model='gemini-2.0-flash' + audio block -> supported","handlingStrategy":"validation","validationCode":"const MULTIMODAL_PREFIXES = ['gemini-1.5', 'gemini-2', 'gemini-3']\nfunction isMultimodalGemini(model: string): boolean {\n  return MULTIMODAL_PREFIXES.some((p) => model.startsWith(p))\n}\nfunction hasAudioBlock(messages: BaseMessage[]): boolean {\n  return messages.some((m) => Array.isArray(m.content) && m.content.some((c) => (c as any).type === 'audio'))\n}\nif (hasAudioBlock(messages) && !isMultimodalGemini(model)) {\n  throw new Error(`Model ${model} cannot accept audio`)`\n}","typeGuard":"function hasAudio(c: unknown): boolean {\n  return typeof c === 'object' && c !== null && (c as any).type === 'audio'\n}","tryCatchPattern":"try {\n  await chatModel.invoke(messages)\n} catch (e) {\n  if (e instanceof Error && e.message === 'This model does not support audio') {\n    // switch model or transcribe audio to text upstream\n  }\n  throw e\n}","preventionTips":["Route audio chatflows only to multimodal Gemini variants.","Transcribe audio to text before non-multimodal models.","Maintain a capability matrix of which Gemini variants support which modalities."],"tags":["gemini","multimodal","model-selection","audio"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}