feat: support gpt-4o-gizmo-* (close #436)

This commit is contained in:
CalciumIon
2024-08-16 17:25:03 +08:00
parent a5ec11e463
commit d0f76a5c61
3 changed files with 23 additions and 8 deletions

View File

@@ -354,6 +354,10 @@ func postConsumeQuota(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, modelN
logModel = "gpt-4-gizmo-*"
logContent += fmt.Sprintf(",模型 %s", modelName)
}
if strings.HasPrefix(logModel, "gpt-4o-gizmo") {
logModel = "gpt-4o-gizmo-*"
logContent += fmt.Sprintf(",模型 %s", modelName)
}
if extraContent != "" {
logContent += ", " + extraContent
}