Cut off the text as soon as any stop words occur.
Generate text from the model.
Use tenacity to retry the completion call.
Nebula Service models.
To use, you should have the environment variable NEBULA_SERVICE_URL,
NEBULA_SERVICE_PATH and NEBULA_API_KEY set with your Nebula
Service, or pass it as a named parameter to the constructor.