Return whether OpenAI API is v1 or more.
Use tenacity to retry the embedding call.
Use tenacity to retry the embedding call.
OpenAI embedding models.
To use, you should have the openai python package installed, and the
environment variable OPENAI_API_KEY set with your API key or pass it
as a named parameter to the constructor.