ai_scheduler/internal/entitys/advicer_model_sup.go

52 lines
1.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package entitys
// AdvicerModelSupAddReq 新增模型提供方配置
type AdvicerModelSupAddReq struct {
SupName string `json:"sup_name"` // 备注名称
SupWay int32 `json:"sup_way"` // 供应方:1=火山引擎,2=openai
Key string `json:"key"` // 密钥
URL string `json:"url"` // 接口地址
FileModel string `json:"file_model"`
JSONModel string `json:"json_model"`
ChatModel string `json:"chat_model"`
Mode int32 `json:"mode"` // 模式,默认1
}
// AdvicerModelSupUpdateReq 更新模型提供方配置
type AdvicerModelSupUpdateReq struct {
SupID int32 `json:"sup_id"`
SupName string `json:"sup_name"`
SupWay int32 `json:"sup_way"`
Key string `json:"key"`
URL string `json:"url"`
FileModel string `json:"file_model"`
JSONModel string `json:"json_model"`
ChatModel string `json:"chat_model"`
Mode int32 `json:"mode"`
}
// AdvicerModelSupListReq 查询模型提供方配置列表
type AdvicerModelSupListReq struct {
SupID int32 `json:"sup_id"`
SupName string `json:"sup_name"`
Page int `json:"page"`
PageSize int `json:"page_size"`
}
// AdvicerModelSupDelReq 删除模型提供方配置
type AdvicerModelSupDelReq struct {
SupID int32 `json:"sup_id"`
}
// FileUploadRes 文件上传响应
type FileUploadRes struct {
// 相对路径(前端可拼接自身 origin 使用)
Path string `json:"path"`
// 完整访问地址(基于请求 Host 拼接)
Url string `json:"url"`
// 原始文件名
Name string `json:"name"`
// 文件大小(字节)
Size int64 `json:"size"`
}