mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix(openrouter): add strict typing annotations to config and exception classes
This commit is contained in:
parent
afc976a7e9
commit
b7530315f8
2 changed files with 3 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ class OpenRouterRegionNotSupportedError(NotFoundError):
|
|||
max_retries: int | None = None,
|
||||
num_retries: int | None = None,
|
||||
region: str | None = None,
|
||||
):
|
||||
) -> None:
|
||||
self.region = region
|
||||
super().__init__(
|
||||
message=message,
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ class OpenrouterConfig(OpenAIGPTConfig):
|
|||
def __init__(
|
||||
self,
|
||||
region: str | None = None,
|
||||
**kwargs,
|
||||
):
|
||||
**kwargs: object,
|
||||
) -> None:
|
||||
self.region = region
|
||||
super().__init__(**kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue