@@ -130,12 +130,9 @@ def integration_name(self):
130130 return "langfuse"
131131
132132 def _get_prompt_from_id (
133- self ,
134- langfuse_prompt_id : str ,
135- langfuse_client : LangfuseClass ,
136- prompt_label : Optional [str ] = None ,
133+ self , langfuse_prompt_id : str , langfuse_client : LangfuseClass
137134 ) -> PROMPT_CLIENT :
138- return langfuse_client .get_prompt (langfuse_prompt_id , label = prompt_label )
135+ return langfuse_client .get_prompt (langfuse_prompt_id )
139136
140137 def _compile_prompt (
141138 self ,
@@ -179,16 +176,18 @@ async def async_get_chat_completion_prompt(
179176 dynamic_callback_params : StandardCallbackDynamicParams ,
180177 litellm_logging_obj : LiteLLMLoggingObj ,
181178 tools : Optional [List [Dict ]] = None ,
182- prompt_label : Optional [str ] = None ,
183- ) -> Tuple [str , List [AllMessageValues ], dict ,]:
179+ ) -> Tuple [
180+ str ,
181+ List [AllMessageValues ],
182+ dict ,
183+ ]:
184184 return self .get_chat_completion_prompt (
185185 model ,
186186 messages ,
187187 non_default_params ,
188188 prompt_id ,
189189 prompt_variables ,
190190 dynamic_callback_params ,
191- prompt_label = prompt_label ,
192191 )
193192
194193 def should_run_prompt_management (
@@ -212,7 +211,6 @@ def _compile_prompt_helper(
212211 prompt_id : str ,
213212 prompt_variables : Optional [dict ],
214213 dynamic_callback_params : StandardCallbackDynamicParams ,
215- prompt_label : Optional [str ] = None ,
216214 ) -> PromptManagementClient :
217215 langfuse_client = langfuse_client_init (
218216 langfuse_public_key = dynamic_callback_params .get ("langfuse_public_key" ),
@@ -221,9 +219,7 @@ def _compile_prompt_helper(
221219 langfuse_host = dynamic_callback_params .get ("langfuse_host" ),
222220 )
223221 langfuse_prompt_client = self ._get_prompt_from_id (
224- langfuse_prompt_id = prompt_id ,
225- langfuse_client = langfuse_client ,
226- prompt_label = prompt_label ,
222+ langfuse_prompt_id = prompt_id , langfuse_client = langfuse_client
227223 )
228224
229225 ## SET PROMPT
0 commit comments