Added GPT-4-vision

This commit is contained in:
Heiko Joerg Schick
2023-12-14 20:39:19 +01:00
parent 25df881a39
commit 467893db67
7 changed files with 205 additions and 114 deletions
+11 -1
View File
@@ -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';