{"record":{"id":"547885155ea79a24","repo":"ueberdosis/tiptap","slug":"tiptap-warn-the-provider-option-is-required-f","errorCode":null,"errorMessage":"[tiptap warn]: The \"provider\" option is required for \"AiInsertReveal\" to tell the AI apart from other collaborators. Nothing is revealed without it.","messagePattern":"\\[tiptap warn\\]: The \"provider\" option is required for \"AiInsertReveal\" to tell the AI apart from other collaborators\\. Nothing is revealed without it\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/ai-toolkit/src/streaming-reveal.ts","lineNumber":239,"sourceCode":" * It never mutates the document, so it is inert to accept/reject and persistence.\n * Requires Collaboration, a provider, and CSS for `className` (default `ai-insert-reveal`).\n */\nexport const AiInsertReveal = Extension.create<AiInsertRevealOptions>({\n  name: 'aiInsertReveal',\n\n  addOptions() {\n    return {\n      className: 'ai-insert-reveal',\n      durationMs: 550,\n      provider: null,\n    }\n  },\n\n  onCreate() {\n    const { provider, durationMs } = this.options\n\n    if (!provider) {\n      console.warn(\n        '[tiptap warn]: The \"provider\" option is required for \"AiInsertReveal\" to tell the AI apart from other collaborators. Nothing is revealed without it.',\n      )\n    } else if (!provider.awareness) {\n      console.warn(\n        '[tiptap warn]: The provider passed to \"AiInsertReveal\" has no awareness, so the AI cannot be identified. Nothing is revealed.',\n      )\n    }\n\n    if (durationMs <= 0) {\n      console.warn(\n        `[tiptap warn]: \"AiInsertReveal\" needs a positive \"durationMs\" to hold a reveal, got ${durationMs}. Nothing is revealed.`,\n      )\n    }\n  },\n\n  addProseMirrorPlugins() {\n    const { className, durationMs, provider } = this.options\n","sourceCodeStart":221,"sourceCodeEnd":257,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/ai-toolkit/src/streaming-reveal.ts#L221-L257","documentation":"Error \"[tiptap warn]: The \"provider\" option is required for \"AiInsertReveal\" to tell the AI apart from other collaborators. Nothing is revealed without it.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/ai-toolkit/src/streaming-reveal.ts:239 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":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}