{"record":{"id":"2db8ba0fc3441db1","repo":"chatboxai/chatbox","slug":"cannot-find-model-with-provider-settings-provid","errorCode":null,"errorMessage":"Cannot find model with provider: ${settings.provider}","messagePattern":"Cannot find model with provider: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/shared/providers/index.ts","lineNumber":208,"sourceCode":"    const effectiveApiKey = resolveEffectiveApiKey(providerSetting, dependencies.platformType || 'desktop')\n    return createCustomProviderModel(\n      {\n        settings,\n        globalSettings,\n        config,\n        dependencies,\n        providerSetting,\n        formattedApiHost,\n        formattedApiPath,\n        model,\n        effectiveApiKey,\n      },\n      providerBaseInfo.type,\n      dependencies\n    )\n  }\n\n  throw new Error(`Cannot find model with provider: ${settings.provider}`)\n}\n","sourceCodeStart":190,"sourceCodeEnd":210,"githubUrl":"https://github.com/chatboxai/chatbox/blob/81571269addb6bafb589a920b2883f1e1e084fd1/src/shared/providers/index.ts#L190-L210","documentation":"Error \"Cannot find model with provider: ${settings.provider}\" thrown in chatboxai/chatbox.","triggerScenarios":"Thrown at src/shared/providers/index.ts:208 when the library encounters an invalid state.","commonSituations":"Occurs in src/shared/providers/index.ts when the settings provider id does not match any registered model provider.","solutions":["Re-select the model in settings; the provider is neither in the registry nor in the custom providers list.","Recreate the custom provider if it was removed, then pick the model again.","Check for typos or stale provider ids in restored/migrated settings."],"exampleFix":"// getModel fell through registry and custom-provider paths\n// Fix: assign a valid provider id to settings.provider","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"81571269addb6bafb589a920b2883f1e1e084fd1","analyzedAt":"2026-08-12T21:51:44.981Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}