NextChat-U/app/typing.ts

14 lines
413 B
TypeScript
Raw Normal View History

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