From e4d6024c6a47ea0a758c2b7f91d3714eb7b9012a Mon Sep 17 00:00:00 2001 From: yucheng Date: Mon, 14 Sep 2026 20:47:43 +0000 Subject: [PATCH] fix(langfuse): drop the always-true prompt client check now that v4 get_prompt is non-optional Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../integrations/langfuse/langfuse_prompt_management.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/litellm/integrations/langfuse/langfuse_prompt_management.py b/litellm/integrations/langfuse/langfuse_prompt_management.py index 48ba9d45e36..1cf8bbb6f38 100644 --- a/litellm/integrations/langfuse/langfuse_prompt_management.py +++ b/litellm/integrations/langfuse/langfuse_prompt_management.py @@ -241,11 +241,8 @@ class LangfusePromptManagement(LangFuseLogger, PromptManagementBase, CustomLogge langfuse_host=dynamic_callback_params.get("langfuse_host"), allow_env_credentials=dynamic_callback_params.get("langfuse_host") is None, ) - langfuse_prompt_client: Final = self._get_prompt_from_id( - langfuse_prompt_id=prompt_id, - langfuse_client=langfuse_client, - ) - return langfuse_prompt_client is not None + self._get_prompt_from_id(langfuse_prompt_id=prompt_id, langfuse_client=langfuse_client) + return True def _compile_prompt_helper( self,