ChatCompletions
Defined in: wrapper/src/openai-sdk.ts:147
Chat completions interface (mimics OpenAI SDK).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ChatCompletions(
backend,config):ChatCompletions
Defined in: wrapper/src/openai-sdk.ts:152
Parameters
Section titled “Parameters”backend
Section titled “backend”config
Section titled “config”OpenAISDKConfig = {}
Returns
Section titled “Returns”ChatCompletions
Methods
Section titled “Methods”create()
Section titled “create()”Create a chat completion.
Call Signature
Section titled “Call Signature”create(
params):Promise<OpenAIChatCompletion>
Defined in: wrapper/src/openai-sdk.ts:161
Create a chat completion (non-streaming).
Parameters
Section titled “Parameters”params
Section titled “params”OpenAIChatCompletionParams & object
Returns
Section titled “Returns”Promise<OpenAIChatCompletion>
Call Signature
Section titled “Call Signature”create(
params):AsyncIterable<OpenAIChatCompletionChunk>
Defined in: wrapper/src/openai-sdk.ts:168
Create a chat completion (streaming).
Parameters
Section titled “Parameters”params
Section titled “params”OpenAIChatCompletionParams & object
Returns
Section titled “Returns”AsyncIterable<OpenAIChatCompletionChunk>