feat: add UploadFile interface for handling file uploads

This commit is contained in:
dakai
2024-10-06 01:01:02 +08:00
parent 10f6ef0fb1
commit f9e4f02d53
5 changed files with 103 additions and 16 deletions

View File

@@ -36,9 +36,15 @@ export interface MultimodalContent {
};
file_url?: {
url: string;
name: string;
};
}
export interface UploadFile {
name: string;
url: string;
}
export interface RequestMessage {
role: MessageRole;
content: string | MultimodalContent[];