|
4 | 4 |
|
5 | 5 | import os
|
6 | 6 | import asyncio
|
7 |
| -from typing import Union, Mapping, Optional |
| 7 | +from typing import Union, Mapping |
8 | 8 |
|
9 | 9 | import httpx
|
10 | 10 |
|
@@ -61,7 +61,7 @@ def __init__(
|
61 | 61 | *,
|
62 | 62 | api_key: str | None = None,
|
63 | 63 | organization: str | None = None,
|
64 |
| - base_url: Optional[str] = None, |
| 64 | + base_url: str | httpx.URL | None = None, |
65 | 65 | timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
66 | 66 | max_retries: int = DEFAULT_MAX_RETRIES,
|
67 | 67 | default_headers: Mapping[str, str] | None = None,
|
@@ -146,7 +146,7 @@ def copy(
|
146 | 146 | *,
|
147 | 147 | api_key: str | None = None,
|
148 | 148 | organization: str | None = None,
|
149 |
| - base_url: str | None = None, |
| 149 | + base_url: str | httpx.URL | None = None, |
150 | 150 | timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
151 | 151 | http_client: httpx.Client | None = None,
|
152 | 152 | max_retries: int | NotGiven = NOT_GIVEN,
|
@@ -260,7 +260,7 @@ def __init__(
|
260 | 260 | *,
|
261 | 261 | api_key: str | None = None,
|
262 | 262 | organization: str | None = None,
|
263 |
| - base_url: Optional[str] = None, |
| 263 | + base_url: str | httpx.URL | None = None, |
264 | 264 | timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
|
265 | 265 | max_retries: int = DEFAULT_MAX_RETRIES,
|
266 | 266 | default_headers: Mapping[str, str] | None = None,
|
@@ -345,7 +345,7 @@ def copy(
|
345 | 345 | *,
|
346 | 346 | api_key: str | None = None,
|
347 | 347 | organization: str | None = None,
|
348 |
| - base_url: str | None = None, |
| 348 | + base_url: str | httpx.URL | None = None, |
349 | 349 | timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
|
350 | 350 | http_client: httpx.AsyncClient | None = None,
|
351 | 351 | max_retries: int | NotGiven = NOT_GIVEN,
|
|
0 commit comments