mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix: forward custom_llm_provider to normalize_reasoning_effort_value in responses adapter
This commit is contained in:
parent
fed598de5c
commit
70855c9695
1 changed files with 5 additions and 1 deletions
|
|
@ -81,7 +81,11 @@ def _build_responses_kwargs(
|
|||
)
|
||||
|
||||
effort = reasoning["effort"]
|
||||
normalized = normalize_reasoning_effort_value(effort, model=model)
|
||||
normalized = normalize_reasoning_effort_value(
|
||||
effort,
|
||||
model=model,
|
||||
custom_llm_provider=(extra_kwargs or {}).get("custom_llm_provider"),
|
||||
)
|
||||
if normalized != effort:
|
||||
responses_kwargs["reasoning"] = {**reasoning, "effort": normalized}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue