Added GPT-4-vision
This commit is contained in:
+11
-1
@@ -2,7 +2,17 @@ import { OpenAIModel } from './openai';
|
||||
|
||||
export interface Message {
|
||||
role: Role;
|
||||
content: string;
|
||||
content: Content[];
|
||||
}
|
||||
|
||||
export interface Content{
|
||||
type: string;
|
||||
text?: string;
|
||||
image_url?: ImageUrl;
|
||||
}
|
||||
|
||||
export interface ImageUrl{
|
||||
url: string;
|
||||
}
|
||||
|
||||
export type Role = 'assistant' | 'user';
|
||||
|
||||
Reference in New Issue
Block a user