We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent debf820 commit 1d535c3Copy full SHA for 1d535c3
langfuse/_client/client.py
@@ -2019,6 +2019,8 @@ def create_prompt(
2019
)
2020
server_prompt = self.api.prompts.create(request=request)
2021
2022
+ self.langfuse_tracer.prompt_cache.invalidate(name)
2023
+
2024
return ChatPromptClient(prompt=cast(Prompt_Chat, server_prompt))
2025
2026
if not isinstance(prompt, str):
@@ -2035,6 +2037,9 @@ def create_prompt(
2035
2037
2036
2038
2039
2040
2041
2042
2043
return TextPromptClient(prompt=cast(Prompt_Text, server_prompt))
2044
2045
except Error as e:
0 commit comments