@@ -33,17 +33,24 @@ async def process_row(row: EvaluationRow) -> EvaluationRow:
3333
3434 messages_payload = [{"role" : m .role , "content" : m .content } for m in row .messages ]
3535
36- request_params = {"model" : config .model , "messages" : messages_payload , ** config .input_params }
36+ request_params = {
37+ "model" : config .completion_params .model ,
38+ "messages" : messages_payload ,
39+ ** config .completion_params ,
40+ }
3741 # Ensure caching is disabled only for this request (review feedback)
3842 request_params ["cache" ] = {"no-cache" : True }
3943 # Single-level reasoning effort: expect `reasoning_effort` only
4044 effort_val = None
41- if isinstance (config .input_params , dict ):
42- if "reasoning_effort" in config .input_params :
43- effort_val = str (config .input_params ["reasoning_effort" ]) # flat shape
44- elif isinstance (config .input_params .get ("extra_body" ), dict ) and "reasoning_effort" in config .input_params ["extra_body" ]:
45+ if isinstance (config .completion_params , dict ):
46+ if "reasoning_effort" in config .completion_params :
47+ effort_val = str (config .completion_params ["reasoning_effort" ]) # flat shape
48+ elif (
49+ isinstance (config .completion_params .get ("extra_body" ), dict )
50+ and "reasoning_effort" in config .completion_params ["extra_body" ]
51+ ):
4552 # Accept if user passed it directly inside extra_body
46- effort_val = str (config .input_params ["extra_body" ]["reasoning_effort" ]) # already in extra_body
53+ effort_val = str (config .completion_params ["extra_body" ]["reasoning_effort" ]) # already in extra_body
4754
4855 if effort_val :
4956 # Always under extra_body so LiteLLM forwards to provider-specific param set
0 commit comments