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