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

This commit is contained in:
CalciumIon
2024-08-16 17:25:03 +08:00
parent 7a3ca166ec
commit 37cc9c2448
3 changed files with 23 additions and 8 deletions
+4
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
}