You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			25 lines
		
	
	
		
			577 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			577 B
		
	
	
	
		
			TypeScript
		
	
| 
											9 months ago
										 | 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"; | ||
|  | 
 | ||
|  | export type ModelSize = | ||
|  |   | "1024x1024" | ||
|  |   | "1792x1024" | ||
|  |   | "1024x1792" | ||
|  |   | "768x1344" | ||
|  |   | "864x1152" | ||
|  |   | "1344x768" | ||
|  |   | "1152x864" | ||
|  |   | "1440x720" | ||
|  |   | "720x1440"; |