{"record":{"id":"db4bf300acb89393","repo":"BerriAI/litellm","slug":"vantage-settings-not-found-please-initialize-sett","errorCode":null,"errorMessage":"Vantage settings not found. Please initialize settings first using /vantage/init","messagePattern":"Vantage settings not found\\. Please initialize settings first using /vantage/init","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":209,"sourceCode":"    Only admin users can update Vantage settings.\n    \"\"\"\n    if user_api_key_dict.user_role != LitellmUserRoles.PROXY_ADMIN:\n        raise HTTPException(\n            status_code=403,\n            detail={\"error\": CommonProxyErrors.not_allowed_access.value},\n        )\n\n    if not any([request.api_key, request.integration_token, request.base_url]):\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": \"At least one field must be provided for update\"},\n        )\n\n    try:\n        current_settings: Final = await _get_vantage_settings()\n\n        if not current_settings:\n            raise HTTPException(\n                status_code=404,\n                detail={\"error\": \"Vantage settings not found. Please initialize settings first using /vantage/init\"},\n            )\n\n        updated_api_key: Final = request.api_key if request.api_key is not None else current_settings.get(\"api_key\", \"\")\n        updated_token: Final = (\n            request.integration_token\n            if request.integration_token is not None\n            else current_settings.get(\"integration_token\", \"\")\n        )\n        updated_base_url: Final = (\n            request.base_url\n            if request.base_url is not None\n            else current_settings.get(\"base_url\", \"https://api.vantage.sh\")\n        )\n\n        await _set_vantage_settings(\n            api_key=updated_api_key,","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L191-L227","documentation":"The update endpoint found no VANTAGE_SETTINGS_PARAM_NAME row in LiteLLM_Config, meaning /vantage/init was never run (or settings were deleted). Updates are patch-only by design, so the operator must initialize settings before editing them.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:209 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize Vantage settings first via the /vantage/init endpoint before updating."],"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"}