forked from XiaoMo/ChatGPT-Next-Web
10 lines
272 B
TypeScript
10 lines
272 B
TypeScript
import type {
|
|
CreateChatCompletionRequest,
|
|
CreateChatCompletionResponse,
|
|
} from "openai";
|
|
|
|
export type ChatRequest = CreateChatCompletionRequest;
|
|
export type ChatResponse = CreateChatCompletionResponse;
|
|
|
|
export type Updater<T> = (updater: (value: T) => void) => void;
|