feat: RecognizeFile
This commit is contained in:
parent
e0fd700768
commit
e3b958e165
|
|
@ -1,8 +1,6 @@
|
||||||
package entitys
|
package entitys
|
||||||
|
|
||||||
import (
|
import "ai_scheduler/internal/data/constants"
|
||||||
"ai_scheduler/internal/data/constants"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Recognize struct {
|
type Recognize struct {
|
||||||
SystemPrompt string // 系统提示内容
|
SystemPrompt string // 系统提示内容
|
||||||
|
|
@ -28,11 +26,7 @@ type RecognizeUserContent struct {
|
||||||
type FileData []byte
|
type FileData []byte
|
||||||
|
|
||||||
type RecognizeFile struct {
|
type RecognizeFile struct {
|
||||||
File []File
|
|
||||||
FileUrl []string // 文件下载链接
|
|
||||||
}
|
|
||||||
|
|
||||||
type File struct {
|
|
||||||
FileData FileData // 文件数据(二进制格式)
|
FileData FileData // 文件数据(二进制格式)
|
||||||
FileType constants.Caller // 文件类型(文件类型,能填最好填,可以跳过一层判断)
|
FileType constants.Caller // 文件类型(文件类型,能填最好填,可以跳过一层判断)
|
||||||
|
FileUrl string // 文件下载链接
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ type FirstSockRequest struct {
|
||||||
|
|
||||||
type ChatSockRequest struct {
|
type ChatSockRequest struct {
|
||||||
Text string `json:"text" binding:"required"`
|
Text string `json:"text" binding:"required"`
|
||||||
Img string `json:"img" binding:"required"`
|
Img string `json:"img" binding:"required"` // 多图片使用 英文, 分割
|
||||||
File string `json:"file" binding:"required"`
|
File string `json:"file" binding:"required"`
|
||||||
Tags string `json:"tags" binding:"required"`
|
Tags string `json:"tags" binding:"required"`
|
||||||
MarkHis int64 `json:"mark_his" `
|
MarkHis int64 `json:"mark_his" `
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue