Closed
Description
In the function openai.embeddings_utils.get_embeddings
(code), there is a check for the length of the input texts list:
assert len(list_of_text) < 2048, "The batch size should not be larger than 2048."
From the error message The batch size should not be larger than 2048
, I expect that this function accepts a list of length 2048. However, the assertion assert len(list_of_text) < 2048
allows a maximum length of 2047. I find this quite confusing.
Metadata
Metadata
Assignees
Labels
No labels