{"record":{"id":"6b25ab11112f15b5","repo":"BerriAI/litellm","slug":"model-info-not-provided","errorCode":null,"errorMessage":"model_info not provided","messagePattern":"model_info not provided","errorType":"exception","errorClass":"Exception","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_management_endpoints.py","lineNumber":1919,"sourceCode":"        llm_router,\n        premium_user,\n        prisma_client,\n        store_model_in_db,\n    )\n\n    try:\n        if prisma_client is None:\n            raise HTTPException(\n                status_code=500,\n                detail={\n                    \"error\": \"No DB Connected. Here's how to do it - https://docs.litellm.ai/docs/proxy/virtual_keys\"\n                },\n            )\n\n        _model_id: str | None = None\n        _model_info: Final = getattr(model_params, \"model_info\", None)\n        if _model_info is None:\n            raise Exception(\"model_info not provided\")\n\n        _model_id = _model_info.id\n        if _model_id is None:\n            raise Exception(\"model_info.id not provided\")\n\n        _existing_litellm_params = await ModelRepository(prisma_client).table.find_unique(where={\"model_id\": _model_id})\n\n        if _existing_litellm_params is None:\n            if llm_router is not None and llm_router.get_deployment(model_id=_model_id) is not None:\n                raise HTTPException(\n                    status_code=400,\n                    detail={\"error\": \"Can't edit model. Model in config. Store model in db via `/model/new`. to edit.\"},\n                )\n            else:\n                raise Exception(\"model not found\")\n        deployment: Final = Deployment(**_existing_litellm_params.model_dump())\n\n        await ModelManagementAuthChecks.can_user_make_model_call(","sourceCodeStart":1901,"sourceCodeEnd":1937,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_management_endpoints.py#L1901-L1937","documentation":"Structural guard on the model update flow: the incoming Deployment carries no model_info object at all. model_info (and its id) is what locates the DB row to update, so the request cannot proceed; raised as an Exception and converted to a 400.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_management_endpoints.py:1919 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include model_info in the request body."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}