Skip to content

Commit 1204d12

Browse files
authored
Fix for extra fields in messages sent to LLMs (#952)
* fix for extra fields Signed-off-by: Mandana Vaziri <[email protected]>
1 parent 7455aa4 commit 1204d12

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
@@ -1412,6 +1412,8 @@ def process_call_model(
14121412
"pdl__model_input": model_input,
14131413
}
14141414
)
1415+
1416+
model_input = [{"role": m["role"], "content": m["content"]} for m in model_input]
14151417
# Execute model call
14161418
try:
14171419
litellm_params = {}

0 commit comments

Comments
 (0)