refactor(api): update file_url field in MultimodalContent interface

This commit is contained in:
dakai
2024-10-05 23:00:02 +08:00
parent 83f948239c
commit 10f6ef0fb1
4 changed files with 53 additions and 27 deletions

View File

@@ -29,11 +29,14 @@ export const TTSModels = ["tts-1", "tts-1-hd"] as const;
export type ChatModel = ModelType;
export interface MultimodalContent {
type: "text" | "image_url";
type: "text" | "image_url" | "file_url";
text?: string;
image_url?: {
url: string;
};
file_url?: {
url: string;
};
}
export interface RequestMessage {