Files
litellm/litellm/completion_extras
Yuneng Jiang 310d61ba70 [Fix] Replace cast with proper typing for reasoning_items
Add reasoning_items field to ChatCompletionAssistantMessage TypedDict
and extract a typed _get_reasoning_items helper instead of using cast.
Also widen _reasoning_item_to_response_input to accept ChatCompletionReasoningItem.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:33:26 -07:00
..

Logic specific for litellm.completion.

Includes:

  • Bridge for transforming completion requests to responses api requests