We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce3db7d commit 22182e3Copy full SHA for 22182e3
1 file changed
langfuse/model.py
@@ -380,9 +380,11 @@ def compile(
380
compiled_msg = dict(msg) # type: ignore
381
# Ensure role and content are always present
382
compiled_msg["role"] = msg.get("role", "NOT_GIVEN")
383
- compiled_msg["content"] = TemplateParser.compile_template(
384
- msg.get("content", ""), # type: ignore
385
- kwargs,
+ compiled_msg["content"] = (
+ TemplateParser.compile_template(
+ msg.get("content", ""), # type: ignore
386
+ kwargs,
387
+ )
388
)
389
compiled_messages.append(compiled_msg)
390
else:
0 commit comments