postApiV1ChatCompletions
postApiV1ChatCompletions<
ThrowOnError>(options:Options<PostApiV1ChatCompletionsData,ThrowOnError>):RequestResult<PostApiV1ChatCompletionsResponses,PostApiV1ChatCompletionsErrors,ThrowOnError>
Defined in: src/client/sdk.gen.ts:210Â
Create chat completion
Generates a chat completion using the configured gateway. Supports streaming when stream=true.
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
RequestResult<PostApiV1ChatCompletionsResponses, PostApiV1ChatCompletionsErrors, ThrowOnError>
Last updated on