|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import List, Optional |
| 5 | +from typing import Optional |
6 | 6 | from typing_extensions import Literal
|
7 | 7 |
|
8 | 8 | import httpx
|
9 | 9 |
|
10 | 10 | from ..types import reranking_create_params
|
11 |
| -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 11 | +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
12 | 12 | from .._utils import maybe_transform, async_maybe_transform
|
13 | 13 | from .._compat import cached_property
|
14 | 14 | from .._resource import SyncAPIResource, AsyncAPIResource
|
@@ -49,7 +49,7 @@ def create(
|
49 | 49 | *,
|
50 | 50 | model: Literal["kanon-universal-classifier", "kanon-universal-classifier-mini"],
|
51 | 51 | query: str,
|
52 |
| - texts: List[str], |
| 52 | + texts: SequenceNotStr[str], |
53 | 53 | chunking_options: Optional[reranking_create_params.ChunkingOptions] | NotGiven = NOT_GIVEN,
|
54 | 54 | is_iql: bool | NotGiven = NOT_GIVEN,
|
55 | 55 | scoring_method: Literal["auto", "chunk_max", "chunk_avg", "chunk_min"] | NotGiven = NOT_GIVEN,
|
@@ -160,7 +160,7 @@ async def create(
|
160 | 160 | *,
|
161 | 161 | model: Literal["kanon-universal-classifier", "kanon-universal-classifier-mini"],
|
162 | 162 | query: str,
|
163 |
| - texts: List[str], |
| 163 | + texts: SequenceNotStr[str], |
164 | 164 | chunking_options: Optional[reranking_create_params.ChunkingOptions] | NotGiven = NOT_GIVEN,
|
165 | 165 | is_iql: bool | NotGiven = NOT_GIVEN,
|
166 | 166 | scoring_method: Literal["auto", "chunk_max", "chunk_avg", "chunk_min"] | NotGiven = NOT_GIVEN,
|
|
0 commit comments