mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
fix(bedrock): adapt release imports and integration helpers
This commit is contained in:
parent
4946e2ddd0
commit
c510701784
5 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from collections.abc import Mapping
|
||||
"""
|
||||
Common base config for all LLM providers
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from pydantic import TypeAdapter
|
||||
# LiteLLM main module: public completion, embedding, streaming, and moderation entrypoints.
|
||||
#
|
||||
# +-----------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from __future__ import annotations
|
||||
from collections.abc import Mapping
|
||||
|
||||
from collections.abc import Callable, Coroutine, Iterable
|
||||
from dataclasses import dataclass
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler
|
||||
import asyncio
|
||||
import base64
|
||||
import copy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue