Skip to content

Commit 2fd0e20

Browse files
To support tuple of string for Embeddings and AsyncEmbeddings openai#1934
1 parent 39ccc3d commit 2fd0e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openai/resources/embeddings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> EmbeddingsWithStreamingResponse:
4646
def create(
4747
self,
4848
*,
49-
input: Union[str, List[str], Tuple[str], Iterable[int], Iterable[Iterable[int]]],
49+
input: Union[str, List[str], Tuple[str, ...], Iterable[int], Iterable[Iterable[int]]],
5050
model: Union[str, EmbeddingModel],
5151
dimensions: int | NotGiven = NOT_GIVEN,
5252
encoding_format: Literal["float", "base64"] | NotGiven = NOT_GIVEN,
@@ -162,7 +162,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsWithStreamingResponse:
162162
async def create(
163163
self,
164164
*,
165-
input: Union[str, List[str], Tuple[str], Iterable[int], Iterable[Iterable[int]]],
165+
input: Union[str, List[str], Tuple[str, ...], Iterable[int], Iterable[Iterable[int]]],
166166
model: Union[str, EmbeddingModel],
167167
dimensions: int | NotGiven = NOT_GIVEN,
168168
encoding_format: Literal["float", "base64"] | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)