mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(aim.py): fix linting error
This commit is contained in:
parent
ee6c9576d4
commit
997f2f0b3e
3 changed files with 57 additions and 18 deletions
|
@ -1,7 +1,16 @@
|
|||
#### What this does ####
|
||||
# On success, logs events to Promptlayer
|
||||
import traceback
|
||||
from typing import TYPE_CHECKING, Any, List, Literal, Optional, Tuple, Union
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
AsyncGenerator,
|
||||
List,
|
||||
Literal,
|
||||
Optional,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
@ -14,6 +23,7 @@ from litellm.types.utils import (
|
|||
EmbeddingResponse,
|
||||
ImageResponse,
|
||||
ModelResponse,
|
||||
ModelResponseStream,
|
||||
StandardCallbackDynamicParams,
|
||||
StandardLoggingPayload,
|
||||
)
|
||||
|
@ -256,7 +266,7 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac
|
|||
user_api_key_dict: UserAPIKeyAuth,
|
||||
response: Any,
|
||||
request_data: dict,
|
||||
) -> Any:
|
||||
) -> AsyncGenerator[ModelResponseStream, None]:
|
||||
async for item in response:
|
||||
yield item
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue