Skip to content

Commit aad3ccf

Browse files
committed
fix
Signed-off-by: Louis Mandel <[email protected]>
1 parent e3506dc commit aad3ccf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,8 @@ def process_call_model(
14161416
)
14171417
try:
14181418
model_input_result = model_input_future.result()
1419+
if isinstance(model_input_result, str):
1420+
model_input_result = [{"role": state.role, "content": model_input_result}]
14191421
model_input_context = ensure_context(model_input_result)
14201422
match block:
14211423
case LitellmModelBlock():

0 commit comments

Comments
 (0)