2023-05-14 17:33:46 +00:00
|
|
|
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";
|
2024-08-10 03:09:07 +00:00
|
|
|
export type DalleQuality = "standard" | "hd";
|
|
|
|
export type DalleStyle = "vivid" | "natural";
|