{"record":{"id":"ae2c6608386012ee","repo":"BerriAI/litellm","slug":"parameter-llm-enrichment-parameter-is-requi","errorCode":null,"errorMessage":"Parameter '{llm_enrichment['parameter']}' is required","messagePattern":"Parameter '(.+?)' is required","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/policy_endpoints/endpoints.py","lineNumber":701,"sourceCode":"    templates: Final = _load_policy_templates_from_local_backup()\n    template: Final = next((t for t in templates if t.get(\"id\") == data.template_id), None)\n    if template is None:\n        raise HTTPException(status_code=404, detail=f\"Template '{data.template_id}' not found\")\n\n    llm_enrichment: Final = template.get(\"llm_enrichment\")\n    if llm_enrichment is None:\n        raise HTTPException(status_code=400, detail=\"Template does not support LLM enrichment\")\n\n    # Validate competitors list size if provided\n    if data.competitors and len(data.competitors) > MAX_COMPETITOR_NAMES:\n        raise HTTPException(\n            status_code=400,\n            detail=f\"competitors list exceeds maximum of {MAX_COMPETITOR_NAMES}\",\n        )\n\n    brand_name: Final = data.parameters.get(llm_enrichment[\"parameter\"], \"\")\n    if not brand_name:\n        raise HTTPException(\n            status_code=400,\n            detail=f\"Parameter '{llm_enrichment['parameter']}' is required\",\n        )\n\n    return template, llm_enrichment, brand_name\n\n\n@router.post(\n    \"/policy/templates/enrich\",\n    tags=[\"policy management\"],\n    dependencies=[Depends(user_api_key_auth)],\n)\n@management_endpoint_wrapper\nasync def enrich_policy_template(\n    data: EnrichTemplateRequest,\n    request: Request,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n) -> dict:","sourceCodeStart":683,"sourceCodeEnd":719,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/policy_endpoints/endpoints.py#L683-L719","documentation":"The template's llm_enrichment spec declares a required parameter, but the request body did not supply it. Raised as 400 from _validate_enrichment_request; at-fault input is the missing llm_enrichment parameter in the enrichment request.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:701 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the required parameter indicated in the message."],"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"}