From 94de1fd4fdb21d2d0da721b1fb81ed2f84ead5a8 Mon Sep 17 00:00:00 2001 From: Kolade Fajimi <107228310+koladefaj@users.noreply.github.com> Date: Sat, 17 Oct 2026 23:01:43 +0100 Subject: [PATCH] fix(types): keep replayed reasoning content read-only --- litellm/types/llms/openai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index f71642f1082..f391f9986ea 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -1,5 +1,5 @@ import builtins -from collections.abc import Iterable, Mapping +from collections.abc import Iterable, Mapping, Sequence from enum import Enum from os import PathLike from typing import IO, Any, Final, Generic, Literal, Optional, TypeAlias, Union @@ -715,7 +715,7 @@ class ChatCompletionReasoningItem(TypedDict, total=False): id: ReadOnly[str] encrypted_content: ReadOnly[str | None] summary: ReadOnly[list[ChatCompletionReasoningSummaryTextBlock]] - content: ReadOnly[list[ChatCompletionReasoningTextBlock]] + content: ReadOnly[Sequence[ChatCompletionReasoningTextBlock]] class WebSearchOptionsUserLocationApproximate(TypedDict, total=False):