fix(bedrock): adapt release imports and integration helpers

This commit is contained in:
Joshua Valluru 2026-10-20 17:47:23 -07:00
parent 4946e2ddd0
commit c510701784
5 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,4 @@
from collections.abc import Mapping
"""
Common base config for all LLM providers
"""

View file

@ -1,3 +1,4 @@
from pydantic import TypeAdapter
# LiteLLM main module: public completion, embedding, streaming, and moderation entrypoints.
#
# +-----------------------------------------------+

View file

@ -1,4 +1,5 @@
from __future__ import annotations
from collections.abc import Mapping
from collections.abc import Callable, Coroutine, Iterable
from dataclasses import dataclass

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import os
import time
import uuid
from collections.abc import Callable, Iterator, Mapping
from collections.abc import Sequence, Callable, Iterator, Mapping
from contextlib import ExitStack, contextmanager
from dataclasses import dataclass
from hashlib import sha256
@ -22,6 +22,11 @@ def object_value(value: JsonValue) -> dict[str, JsonValue]:
return JSON_OBJECT.validate_python(value)
def list_value(value: JsonValue) -> Sequence[JsonValue]:
assert isinstance(value, list), f"Expected a list, received {type(value).__name__}"
return value
def string_value(value: JsonValue) -> str:
assert isinstance(value, str), f"Expected a string, received {type(value).__name__}"
return value

View file

@ -1,3 +1,4 @@
from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler
import asyncio
import base64
import copy