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

This commit is contained in:
CalciumIon committed 2024-08-16 17:25:03 +08:00
1 parent 7a3ca166ec
commit 37cc9c2448
3 files changed
+23 -8

No files matched your search

+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
}