|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List, Mapping, Optional, cast |
| 5 | +from typing import Mapping, Optional, cast |
6 | 6 | from typing_extensions import Literal |
7 | 7 |
|
8 | 8 | import httpx |
9 | 9 |
|
10 | 10 | from ..types import kpu_run_params |
11 | | -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes |
| 11 | +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes, SequenceNotStr |
12 | 12 | from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform |
13 | 13 | from .._compat import cached_property |
14 | 14 | from .._resource import SyncAPIResource, AsyncAPIResource |
@@ -49,7 +49,7 @@ def run( |
49 | 49 | query: str, |
50 | 50 | explain_steps: bool | NotGiven = NOT_GIVEN, |
51 | 51 | retries: int | NotGiven = NOT_GIVEN, |
52 | | - file: List[FileTypes] | NotGiven = NOT_GIVEN, |
| 52 | + file: SequenceNotStr[FileTypes] | NotGiven = NOT_GIVEN, |
53 | 53 | reasoner_model: Optional[ |
54 | 54 | Literal[ |
55 | 55 | "gpt-4-turbo", |
@@ -156,7 +156,7 @@ async def run( |
156 | 156 | query: str, |
157 | 157 | explain_steps: bool | NotGiven = NOT_GIVEN, |
158 | 158 | retries: int | NotGiven = NOT_GIVEN, |
159 | | - file: List[FileTypes] | NotGiven = NOT_GIVEN, |
| 159 | + file: SequenceNotStr[FileTypes] | NotGiven = NOT_GIVEN, |
160 | 160 | reasoner_model: Optional[ |
161 | 161 | Literal[ |
162 | 162 | "gpt-4-turbo", |
|
0 commit comments