typing.ts 272 B

123456789
  1. import type {
  2. CreateChatCompletionRequest,
  3. CreateChatCompletionResponse,
  4. } from "openai";
  5. export type ChatRequest = CreateChatCompletionRequest;
  6. export type ChatResponse = CreateChatCompletionResponse;
  7. export type Updater<T> = (updater: (value: T) => void) => void;