ChatGPT-Next-Web/app/api/openai/typing.ts

10 lines
272 B
TypeScript
Raw Normal View History

2023-03-09 17:01:40 +00:00
import type {
CreateChatCompletionRequest,
CreateChatCompletionResponse,
} from "openai";
export type ChatRequest = CreateChatCompletionRequest;
2023-04-11 04:06:12 +00:00
export type ChatResponse = CreateChatCompletionResponse;
2023-04-24 16:49:27 +00:00
export type Updater<T> = (updater: (value: T) => void) => void;