mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-11 12:31:28 +08:00
fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import TYPE_CHECKING, Literal, Optional, Union
|
from typing import TYPE_CHECKING, Literal, Optional, Union
|
||||||
from urllib.parse import urlencode, urlparse
|
from urllib.parse import ParseResult, urlencode, urlparse
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from openrouter.sdk import OpenRouter
|
from openrouter.sdk import OpenRouter
|
||||||
@@ -11,7 +11,7 @@ if TYPE_CHECKING:
|
|||||||
@dataclass
|
@dataclass
|
||||||
class CreateAuthorizationUrlRequestBase:
|
class CreateAuthorizationUrlRequestBase:
|
||||||
"""Base request parameters for creating an authorization URL"""
|
"""Base request parameters for creating an authorization URL"""
|
||||||
callback_url: Union[str, "urlparse"]
|
callback_url: Union[str, ParseResult]
|
||||||
limit: Optional[float] = None
|
limit: Optional[float] = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user