#openai.error.InvalidRequestError: '$.input' is invalid. Please check the API reference...

5 messages · Page 1 of 1 (latest)

tidal fog
#

Hey, when doing batch embedding with ada-002 I have come across one document that gives this error. The way I am calling the API is simply
openai.Embedding.create(input=input, model=model, request_timeout=COMPLETION_TIMEOUT), where input is a list of chunks of text of about 2667. In debugging it, I found that replacing input to input[:-619] works, input[:-618] does not, and input[1000:] works. Nothing particularly interesting happens around -618 index. What could it be? Thanks.

hot coyote
#

Hi did you ever figure this out?

tidal fog
#

Hey, I haven't. Did you come across the same error?

pure epoch
#

Same problem here @stray geyser . Only on a few % of large documents.

Specifally one array of 869 * max8192 tokens here

pure epoch