Skip to content

Commit 7676870

Browse files
authored
Explicit model input inherit the current role (#149)
1 parent c2fdced commit 7676870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def step_call_model(
10361036
loc,
10371037
)
10381038
if isinstance(model_input_result, str):
1039-
model_input = [{"role": None, "content": model_input_result}]
1039+
model_input = [{"role": state.role, "content": model_input_result}]
10401040
else:
10411041
model_input = model_input_result
10421042
else:

0 commit comments

Comments
 (0)