refactor: update function signatures to include context and improve file handling #1599
This commit is contained in:
8
types/file_data.go
Normal file
8
types/file_data.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package types
|
||||
|
||||
type LocalFileData struct {
|
||||
MimeType string
|
||||
Base64Data string
|
||||
Url string
|
||||
Size int64
|
||||
}
|
||||
@@ -32,9 +32,10 @@ type TokenCountMeta struct {
|
||||
|
||||
type FileMeta struct {
|
||||
FileType
|
||||
MimeType string
|
||||
Data string
|
||||
Detail string
|
||||
MimeType string
|
||||
OriginData string // url or base64 data
|
||||
Detail string
|
||||
ParsedData *LocalFileData
|
||||
}
|
||||
|
||||
type RequestMeta struct {
|
||||
|
||||
Reference in New Issue
Block a user