Calls the OpenAI API with retry logic in case of failures.
completionWithRetry(
request: CompletionCreateParamsStreaming,
options: RequestOptions
): Promise<AsyncIterable<Completion, any, any>>| Name | Type | Description |
|---|---|---|
request* | CompletionCreateParamsStreaming | The request to send to the OpenAI API. |
options | RequestOptions | Optional configuration for the API call. |