Skip to content

Commit

Permalink
To support tuple of string for Embeddings and AsyncEmbeddings openai#…
Browse files Browse the repository at this point in the history
  • Loading branch information
deepthinkerdev committed Dec 26, 2024
1 parent 39ccc3d commit 2fd0e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openai/resources/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def with_streaming_response(self) -> EmbeddingsWithStreamingResponse:
def create(
self,
*,
input: Union[str, List[str], Tuple[str], Iterable[int], Iterable[Iterable[int]]],
input: Union[str, List[str], Tuple[str, ...], Iterable[int], Iterable[Iterable[int]]],
model: Union[str, EmbeddingModel],
dimensions: int | NotGiven = NOT_GIVEN,
encoding_format: Literal["float", "base64"] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -162,7 +162,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsWithStreamingResponse:
async def create(
self,
*,
input: Union[str, List[str], Tuple[str], Iterable[int], Iterable[Iterable[int]]],
input: Union[str, List[str], Tuple[str, ...], Iterable[int], Iterable[Iterable[int]]],
model: Union[str, EmbeddingModel],
dimensions: int | NotGiven = NOT_GIVEN,
encoding_format: Literal["float", "base64"] | NotGiven = NOT_GIVEN,
Expand Down

0 comments on commit 2fd0e20

Please sign in to comment.