Calls the Xinghuo API completion.
completion(
request: ChatCompletionRequest,
stream: true,
signal: AbortSignal
): Promise<IterableReadableStream<string>>| Name | Type | Description |
|---|---|---|
request* | ChatCompletionRequest | The request to send to the Xinghuo API. |
stream* | true | |
signal | AbortSignal | The signal for the API call. |