mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-02-23 17:59:49 +08:00
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
export type Updater<T> = (updater: (value: T) => void) => void;
|
|
|
|
export const ROLES = ["system", "user", "assistant"] as const;
|
|
export type MessageRole = (typeof ROLES)[number];
|
|
|
|
export interface RequestMessage {
|
|
role: MessageRole;
|
|
content: string;
|
|
}
|
|
|
|
export type DalleSize = "1024x1024" | "1792x1024" | "1024x1792";
|
|
export type DalleQuality = "standard" | "hd";
|
|
export type DalleStyle = "vivid" | "natural";
|