{"record":{"id":"1b0851c1c4d70619","repo":"BerriAI/litellm","slug":"unsupported-prompt-prompt-integration","errorCode":null,"errorMessage":"Unsupported prompt: {prompt_integration}","messagePattern":"Unsupported prompt: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/proxy/prompts/prompt_registry.py","lineNumber":142,"sourceCode":"\n        if isinstance(litellm_params_data, dict):\n            litellm_params = PromptLiteLLMParams(**litellm_params_data)\n        else:\n            litellm_params = litellm_params_data\n\n        prompt_integration: Final = litellm_params.prompt_integration\n        if prompt_integration is None:\n            raise ValueError(\"prompt_integration is required\")\n\n        initializer: Final = prompt_initializer_registry.get(prompt_integration)\n\n        if initializer:\n            custom_prompt_callback = initializer(litellm_params, prompt)\n            if not isinstance(custom_prompt_callback, CustomPromptManagement):\n                raise ValueError(f\"CustomPromptManagement is required, got {type(custom_prompt_callback)}\")\n            litellm.logging_callback_manager.add_litellm_callback(custom_prompt_callback)\n        else:\n            raise ValueError(f\"Unsupported prompt: {prompt_integration}\")\n\n        parsed_prompt: Final = PromptSpec(\n            prompt_id=prompt_id,\n            litellm_params=litellm_params,\n            prompt_info=prompt.prompt_info or PromptInfo(prompt_type=\"config\"),\n            created_at=prompt.created_at,\n            updated_at=prompt.updated_at,\n        )\n\n        # store references to the prompt in memory\n        self.IN_MEMORY_PROMPTS[prompt_id] = parsed_prompt\n        self.prompt_id_to_custom_prompt[prompt_id] = custom_prompt_callback\n\n        return parsed_prompt\n\n    def get_prompt_by_id(self, prompt_id: str) -> PromptSpec | None:\n        \"\"\"\n        Get a prompt by its ID from memory","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/prompts/prompt_registry.py#L124-L160","documentation":"Prompt registration guard: the prompt_integration value present in litellm_params has no initializer in the prompt_initializer_registry, i.e. the named integration is unknown/unsupported by this build; raised as ValueError with the unsupported value embedded.","triggerScenarios":"Thrown at litellm/proxy/prompts/prompt_registry.py:142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported prompt integration (e.g. dotprompt, langfuse, or a registered custom integration)."],"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"}