mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
test(bedrock): type the eventstream frame helper's payload as Mapping[str, object]
This commit is contained in:
parent
550511a983
commit
b503762289
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ import struct
|
|||
import zlib
|
||||
from datetime import datetime
|
||||
from types import SimpleNamespace
|
||||
from collections.abc import AsyncIterator
|
||||
from collections.abc import AsyncIterator, Mapping
|
||||
from typing import Final
|
||||
from unittest.mock import Mock
|
||||
|
||||
|
|
@ -3402,7 +3402,7 @@ def test_bedrock_invoke_eager_input_streaming_beta_not_duplicated_with_client_he
|
|||
assert result["anthropic_beta"] == [FINE_GRAINED_TOOL_STREAMING_BETA]
|
||||
|
||||
|
||||
def _bedrock_event_frame(payload: dict) -> bytes:
|
||||
def _bedrock_event_frame(payload: Mapping[str, object]) -> bytes:
|
||||
def _header(name: str, value: str) -> bytes:
|
||||
return (
|
||||
bytes([len(name)])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue