Skip to Content
SdkClientInternalFunctionspostApiV1ChatCompletions

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 ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1ChatCompletionsData, ThrowOnError>

Returns

RequestResult<PostApiV1ChatCompletionsResponses, PostApiV1ChatCompletionsErrors, ThrowOnError>

Last updated on