ChatGPT-Next-Web/app/typing.ts

14 lines
413 B
TypeScript
Raw Normal View History

export type Updater<T> = (updater: (value: T) => void) => void;
2023-09-25 16:19:21 +00:00
2024-04-07 03:32:57 +00:00
export const ROLES = ["system", "user", "assistant"] as const;
export type MessageRole = (typeof ROLES)[number];
2023-09-25 16:19:21 +00:00
2024-04-07 03:32:57 +00:00
export interface RequestMessage {
role: MessageRole;
content: string;
2023-09-25 16:19:21 +00:00
}
2024-08-02 10:50:48 +00:00
export type DalleSize = "1024x1024" | "1792x1024" | "1024x1792";
export type DalleQuality = "standard" | "hd";
export type DalleStyle = "vivid" | "natural";