mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Merge pull request #21566 from BerriAI/fix/pass-through-mypy-type-errors
fix(types): fix mypy errors in pass-through endpoint query param types
This commit is contained in:
commit
f20b5fc62a
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Dict, List, Optional, Union
|
||||
from typing import Dict, List, Mapping, Optional, Union
|
||||
from urllib.parse import parse_qs
|
||||
|
||||
import httpx
|
||||
|
|
@ -10,7 +10,7 @@ class BasePassthroughUtils:
|
|||
@staticmethod
|
||||
def get_merged_query_parameters(
|
||||
existing_url: httpx.URL,
|
||||
request_query_params: Dict[str, Union[str, list]],
|
||||
request_query_params: Mapping[str, Union[str, list]],
|
||||
default_query_params: Optional[Dict[str, Union[str, list]]] = None
|
||||
) -> Dict[str, Union[str, List[str]]]:
|
||||
# Get the existing query params from the target URL
|
||||
|
|
|
|||
|
|
@ -1221,7 +1221,7 @@ def create_pass_through_route(
|
|||
forward_headers=cast(Optional[bool], param_forward_headers),
|
||||
merge_query_params=cast(Optional[bool], param_merge_query_params),
|
||||
query_params=final_query_params,
|
||||
default_query_params=param_default_query_params,
|
||||
default_query_params=cast(Optional[dict], param_default_query_params),
|
||||
stream=is_streaming_request or stream,
|
||||
custom_body=final_custom_body,
|
||||
cost_per_request=cast(Optional[float], param_cost_per_request),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue