Files
video-factory/shortdrama/model/entity/model_config.go
T
2026-07-03 11:38:30 +08:00

36 lines
3.2 KiB
Go

package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
type ModelConfig struct {
Id int64 `orm:"id" json:"id" dc:"配置ID"`
ChatApiKey string `orm:"chat_api_key" json:"chatApiKey" dc:"对话模型API密钥"`
VideoApiKey string `orm:"video_api_key" json:"videoApiKey" dc:"视频模型API密钥"`
ChatBaseUrl string `orm:"chat_base_url" json:"chatBaseUrl" dc:"对话模型接口地址"`
ChatModelName string `orm:"chat_model_name" json:"chatModelName" dc:"对话模型名称"`
MaxTokens int `orm:"max_tokens" json:"maxTokens" dc:"最大Token数"`
Temperature float64 `orm:"temperature" json:"temperature" dc:"温度参数"`
VideoBaseUrl string `orm:"video_base_url" json:"videoBaseUrl" dc:"视频模型接口地址"`
VideoModelName string `orm:"video_model_name" json:"videoModelName" dc:"视频模型名称"`
VideoQueryUrl string `orm:"video_query_url" json:"videoQueryUrl" dc:"视频查询接口地址"`
MaxSingleDuration int `orm:"max_single_duration" json:"maxSingleDuration" dc:"单段最大时长"`
MinSingleDuration int `orm:"min_single_duration" json:"minSingleDuration" dc:"单段最小时长"`
VideoModelCategory string `orm:"video_model_category" json:"videoModelCategory" dc:"视频模型类别(t2v/i2v)"`
VideoNoDurationSupport int `orm:"video_no_duration_support" json:"videoNoDurationSupport" dc:"视频模型不支持自定义duration(0=未探测/支持,1=不支持)"`
MaxReferenceImages int `orm:"max_reference_images" json:"maxReferenceImages" dc:"单次生成最大参考图片数(含首帧),填写模型API限制值,实际使用需减1(首帧占用)"`
MaxRefVideoCount int `orm:"max_ref_video_count" json:"maxRefVideoCount" dc:"参考视频数量(0=不限制)"`
MaxRefVideoFileSize int `orm:"max_ref_video_file_size" json:"maxRefVideoFileSize" dc:"单个参考视频最大大小(MB)"`
MaxRefVideoDuration int `orm:"max_ref_video_duration" json:"maxRefVideoDuration" dc:"单个参考视频最大时长(秒)"`
RefVideoFormats string `orm:"ref_video_formats" json:"refVideoFormats" dc:"允许的参考视频格式,逗号分隔"`
MaxRefAudioCount int `orm:"max_ref_audio_count" json:"maxRefAudioCount" dc:"参考音频数量(0=不限制)"`
MaxRefAudioFileSize int `orm:"max_ref_audio_file_size" json:"maxRefAudioFileSize" dc:"单个参考音频最大大小(MB)"`
MaxRefAudioDuration int `orm:"max_ref_audio_duration" json:"maxRefAudioDuration" dc:"单个参考音频最大时长(秒)"`
RefAudioFormats string `orm:"ref_audio_formats" json:"refAudioFormats" dc:"允许的参考音频格式,逗号分隔"`
MaxRefImageFileSize int `orm:"max_ref_image_file_size" json:"maxRefImageFileSize" dc:"单个参考图片最大大小(MB)"`
RefImageFormats string `orm:"ref_image_formats" json:"refImageFormats" dc:"允许的参考图片格式,逗号分隔"`
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"`
}