From 67aa7068aacd5503d993e93239e153423cdcecc1 Mon Sep 17 00:00:00 2001 From: mubashir1osmani Date: Mon, 24 Aug 2026 13:52:05 -0400 Subject: [PATCH] chore(bedrock/realtime): keep the new realtime event type within lint budgets --- litellm/llms/bedrock/realtime/transformation.py | 6 +++--- litellm/types/llms/openai.py | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/litellm/llms/bedrock/realtime/transformation.py b/litellm/llms/bedrock/realtime/transformation.py index df3d992ccd1..642a076e516 100644 --- a/litellm/llms/bedrock/realtime/transformation.py +++ b/litellm/llms/bedrock/realtime/transformation.py @@ -1223,7 +1223,7 @@ class BedrockRealtimeConfig(BaseRealtimeConfig): type="conversation.item.added", event_id=f"event_{uuid.uuid4()}", previous_item_id=None, - item=OpenAIRealtimeStreamResponseOutputItem({**pending_item}), + item=pending_item, ), # Nova Sonic delivers the whole argument payload at once; emit one delta anyway # so clients that accumulate deltas rather than read `.done` still get the args. @@ -1251,7 +1251,7 @@ class BedrockRealtimeConfig(BaseRealtimeConfig): event_id=f"event_{uuid.uuid4()}", response_id=response_id, output_index=0, - item=OpenAIRealtimeStreamResponseOutputItem({**function_call_item}), + item=function_call_item, ), OpenAIRealtimeDoneEvent( type="response.done", @@ -1260,7 +1260,7 @@ class BedrockRealtimeConfig(BaseRealtimeConfig): object="realtime.response", id=response_id, status="completed", - output=[OpenAIRealtimeStreamResponseOutputItem({**function_call_item})], + output=[function_call_item], conversation_id=conversation_id, usage=self.consume_usage_for_response_done(), ), diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index d8f6dd5faf3..4e88fda47a0 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -2098,13 +2098,13 @@ class OpenAIRealtimeContentPartDone(TypedDict): class OpenAIRealtimeFunctionCallArgumentsDelta(TypedDict): - type: Literal["response.function_call_arguments.delta"] - event_id: str - response_id: str - item_id: str - output_index: int - call_id: str - delta: str + type: ReadOnly[Literal["response.function_call_arguments.delta"]] + event_id: ReadOnly[str] + response_id: ReadOnly[str] + item_id: ReadOnly[str] + output_index: ReadOnly[int] + call_id: ReadOnly[str] + delta: ReadOnly[str] class OpenAIRealtimeFunctionCallArgumentsDone(TypedDict):