mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
chore(bedrock/realtime): keep the new realtime event type within lint budgets
This commit is contained in:
parent
99d701011e
commit
67aa7068aa
2 changed files with 10 additions and 10 deletions
|
|
@ -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(),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue