Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b07217

Browse files
vazirimmandel
authored andcommitted
Fix for extra fields in messages sent to LLMs (#952)
* fix for extra fields Signed-off-by: Mandana Vaziri <[email protected]>
1 parent 062ca95 commit 7b07217

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
@@ -1305,6 +1305,8 @@ def process_call_model(
13051305
"pdl__model_input": model_input,
13061306
}
13071307
)
1308+
1309+
model_input = [{"role": m["role"], "content": m["content"]} for m in model_input]
13081310
# Execute model call
13091311
try:
13101312
litellm_params = {}

0 commit comments

Comments
 (0)