forked from phoenix/litellm-mirror
fix(utils.py): fix linting error for python3.8
This commit is contained in:
parent
a2e792d32e
commit
37dc359efb
1 changed files with 2 additions and 1 deletions
|
@ -160,6 +160,7 @@ from typing import (
|
||||||
Literal,
|
Literal,
|
||||||
Optional,
|
Optional,
|
||||||
Tuple,
|
Tuple,
|
||||||
|
Type,
|
||||||
Union,
|
Union,
|
||||||
cast,
|
cast,
|
||||||
get_args,
|
get_args,
|
||||||
|
@ -6155,7 +6156,7 @@ def _should_retry(status_code: int):
|
||||||
|
|
||||||
|
|
||||||
def type_to_response_format_param(
|
def type_to_response_format_param(
|
||||||
response_format: Optional[Union[type[BaseModel], dict]],
|
response_format: Optional[Union[Type[BaseModel], dict]],
|
||||||
) -> Optional[dict]:
|
) -> Optional[dict]:
|
||||||
"""
|
"""
|
||||||
Re-implementation of openai's 'type_to_response_format_param' function
|
Re-implementation of openai's 'type_to_response_format_param' function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue