I am calling Embedding.create() with an array of texts. When I get an error it doesn’t tell me what specific text is the problem. Is there a solution to this? If there isn’t this is a strong disincentive to submit multiple texts and will hence increase load on your servers.
Sounds like it could be a token issue, how many items in the array?
No. It’s not a token issue. The error is that one of the texts is too long. But since there are multiple you can’t tell which one. I resolved by automatically truncating with the [END] option.
But this is a flaw in the error reporting scheme that should be thought through.