context.api.openai.call
to send a request to OpenAI.
context.api.openai.call
uses context.call
in the background and
using context.call
to request data from an API is one of the most powerful Upstash Workflow
features. Your request can take much longer than any function timeout would normally allow,
completely bypassing any platform-specific timeout limits.response
) is used to determine our retry logic based on its status code and headers.
workflow.run
) to do this for maximum reliability.
workflow.sleep
) for this duration.