File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Chunk(TypedDict):
2424
2525class EmbeddingResponse (BaseResponse ):
2626 embeddings : List [List [float ]]
27- chunks : List [Chunk ]
27+ chunks : Union [ List [Chunk ], List [ str ] ]
2828
2929
3030class Embedding (ClientConfig ):
Original file line number Diff line number Diff line change 55from typing import List , Union
66from ._config import ClientConfig
77from .helpers import build_path
8+ from .embedding import Chunk
89
910
1011class EmbeddingV2Params (TypedDict ):
@@ -20,12 +21,11 @@ class EmbeddingV2Params(TypedDict):
2021class EmbeddingV2Response (TypedDict ):
2122 success : bool
2223 embeddings : List [List [float ]]
23- chunks : List [str ]
24+ chunks : Union [ List [str ], List [ Chunk ] ]
2425 speaker_embeddings : List [List [float ]]
2526
2627
2728class EmbeddingV2 (ClientConfig ):
28-
2929 config : RequestConfig
3030
3131 def __init__ (
@@ -80,7 +80,6 @@ def execute(
8080
8181
8282class AsyncEmbeddingV2 (ClientConfig ):
83-
8483 config : RequestConfig
8584
8685 def __init__ (
You can’t perform that action at this time.
0 commit comments