forked from phoenix/litellm-mirror
fix: add more type hints to init methods
This commit is contained in:
parent
c91ebb6a64
commit
2ecd614a73
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import traceback
|
||||||
|
|
||||||
class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class
|
class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callback#callback-class
|
||||||
# Class variables or attributes
|
# Class variables or attributes
|
||||||
def __init__(self):
|
def __init__(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def log_pre_api_call(self, model, messages, kwargs):
|
def log_pre_api_call(self, model, messages, kwargs):
|
||||||
|
|
|
@ -528,7 +528,7 @@ class ModelResponse(OpenAIObject):
|
||||||
response_ms=None,
|
response_ms=None,
|
||||||
hidden_params=None,
|
hidden_params=None,
|
||||||
**params,
|
**params,
|
||||||
):
|
) -> None:
|
||||||
if stream is not None and stream is True:
|
if stream is not None and stream is True:
|
||||||
object = "chat.completion.chunk"
|
object = "chat.completion.chunk"
|
||||||
if choices is not None and isinstance(choices, list):
|
if choices is not None and isinstance(choices, list):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue