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
..
litellm_responses_transformation [Fix] Replace cast with proper typing for reasoning_items 2026-03-30 11:33:26 -07:00
__init__.py Add bridge for /chat/completion -> /responses API (#11632) 2025-06-11 22:20:18 -07:00
README.md Add bridge for /chat/completion -> /responses API (#11632) 2025-06-11 22:20:18 -07:00

Logic specific for litellm.completion.

Includes:

  • Bridge for transforming completion requests to responses api requests