Skip to content

Commit acd9c6f

Browse files
committed
remove unsused
1 parent 1bc57c9 commit acd9c6f

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

langfuse/model.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -318,23 +318,6 @@ def __init__(self, prompt: Prompt_Chat, is_fallback: bool = False):
318318
content=p.content,
319319
),
320320
)
321-
# Handle plain dictionaries (fallback case)
322-
elif isinstance(p, dict):
323-
if p.get("type") == "placeholder" and "name" in p:
324-
self.prompt.append(
325-
ChatMessageWithPlaceholdersDict_Placeholder(
326-
type="placeholder",
327-
name=p["name"],
328-
),
329-
)
330-
elif "role" in p and "content" in p:
331-
self.prompt.append(
332-
ChatMessageWithPlaceholdersDict_Message(
333-
type="message",
334-
role=p["role"],
335-
content=p["content"],
336-
),
337-
)
338321

339322
def compile(
340323
self, **kwargs

0 commit comments

Comments
 (0)