feat(platform): Agent 与媒体能力 - 完善角色卡、音频协议与任务恢复链路

This commit is contained in:
ddcat666 committed 2026-10-01 09:42:51 +08:00
1 parent a8f83fedd5
commit 5650da6d31
91 files changed
+3438 -380

No files matched your search

+2 -2
View File
@@ -429,8 +429,8 @@ func (s *Service) logicalModelBundle(actor *model.User, id string, req LogicalMo
} else if billingMode != "fixed_request" && billingMode != "per_second" && billingMode != "token" {
return nil, nil, nil, false, BadAuthRequest("前台模型计费方式仅支持按次、按秒或 Token")
}
if pricePolicy == "unified" && billingMode == "per_second" && capability != "video" {
return nil, nil, nil, false, BadAuthRequest("只有视频前台模型可以按秒计费")
if pricePolicy == "unified" && billingMode == "per_second" && capability != "video" && capability != "audio" {
return nil, nil, nil, false, BadAuthRequest("只有视频或音频前台模型可以按秒计费")
}
if pricePolicy == "unified" && billingMode == "token" {
if err := validateTokenPrices(capability, req.InputPriceMicrocredits, req.OutputPriceMicrocredits, req.CachedPriceMicrocredits); err != nil {