Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

models.ChatResult

const value: models.ChatResult = {
  choices: [
    {
      finishReason: "stop",
      index: 0,
      message: {
        role: "assistant",
      },
    },
  ],
  created: 1677652288,
  id: "chatcmpl-123",
  model: "openai/gpt-4",
  object: "chat.completion",
  systemFingerprint: "fp_44709d6fcb",
};

EventStream<models.ChatStreamingResponse>