{"record":{"id":"1496e2c984f2c748","repo":"HeyPuter/puter","slug":"internal-error-1496e2","errorCode":"internal_error","errorMessage":"No provider found for model ${model.id}","messagePattern":"No provider found for model (.+?)","errorType":"http","errorClass":"HttpError","httpStatus":500,"severity":"error","filePath":"src/backend/drivers/ai-video/VideoGenerationDriver.ts","lineNumber":190,"sourceCode":"        }\n\n        if (!args.model && intendedProvider) {\n            args.model = this.#providers[intendedProvider].getDefaultModel();\n        }\n\n        const model = args.model\n            ? this.#resolveModel(args.model, intendedProvider)\n            : undefined;\n\n        if (!model) {\n            throw new HttpError(400, `Model not found: ${args.model}`, {\n                legacyCode: 'bad_request',\n            });\n        }\n\n        const provider = this.#providers[model.provider!];\n        if (!provider) {\n            throw new HttpError(\n                500,\n                `No provider found for model ${model.id}`,\n                { legacyCode: 'internal_error' },\n            );\n        }\n\n        // Validate / normalise duration\n        if (model.durationSeconds?.length) {\n            const requestedSeconds = args.seconds ?? args.duration;\n            const normalizedSeconds =\n                typeof requestedSeconds === 'string'\n                    ? Number.parseInt(requestedSeconds, 10)\n                    : requestedSeconds;\n            const validSeconds = model.durationSeconds.includes(\n                Number(normalizedSeconds),\n            )\n                ? normalizedSeconds\n                : model.durationSeconds[0];","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/HeyPuter/puter/blob/908ec23eda38526170322c3edf71ba45ecb1ca95/src/backend/drivers/ai-video/VideoGenerationDriver.ts#L172-L208","documentation":"Error \"No provider found for model ${model.id}\" thrown in HeyPuter/puter.","triggerScenarios":"Thrown at src/backend/drivers/ai-video/VideoGenerationDriver.ts:190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a model id that has a configured video generation provider.","Check the registered providers and pick a supported model."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"908ec23eda38526170322c3edf71ba45ecb1ca95","analyzedAt":"2026-08-12T20:53:15.911Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}