Calls the xAI API with retry logic in case of failures.
completionWithRetry(
request: ChatCompletionCreateParamsStreaming,
options: RequestOptions
): Promise<AsyncIterable<ChatCompletionChunk, any, any>>| Name | Type | Description |
|---|---|---|
request* | ChatCompletionCreateParamsStreaming | |
options | RequestOptions |