Unispec Docs
SDK ReferenceInterfaces

OpenAILike

Interface: OpenAILike

Defined in: packages/sdk/src/sdk.ts:176

Minimal structural type of the OpenAI client — lets openai return a usable value without a hard dependency on the openai package.

Indexable

[k: string]: unknown

Properties

chat

chat: object

Defined in: packages/sdk/src/sdk.ts:177

completions

completions: object

completions.create

create: (args) => unknown

Parameters
args

Record<string, unknown>

Returns

unknown

On this page