We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c975bce commit f24d193Copy full SHA for f24d193
openai/embeddings_utils.py
@@ -46,7 +46,6 @@ def get_embeddings(
46
list_of_text = [text.replace("\n", " ") for text in list_of_text]
47
48
data = openai.Embedding.create(input=list_of_text, engine=engine, **kwargs).data
49
- data = sorted(data, key=lambda x: x["index"]) # maintain the same order as input.
50
return [d["embedding"] for d in data]
51
52
@@ -60,7 +59,6 @@ async def aget_embeddings(
60
59
61
62
data = (await openai.Embedding.acreate(input=list_of_text, engine=engine, **kwargs)).data
63
64
65
66
0 commit comments