fix: gemini system prompt overwrite

This commit is contained in:
Seefs
2025-09-20 13:38:44 +08:00
parent 7384b0925e
commit 3638bf149c
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func ClaudeHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *typ
info.UpstreamModelName = request.Model
}
if info.ChannelSetting.SystemPrompt != "" && info.ChannelSetting.SystemPromptOverride {
if info.ChannelSetting.SystemPrompt != "" {
if request.System == nil {
request.SetStringSystem(info.ChannelSetting.SystemPrompt)
} else if info.ChannelSetting.SystemPromptOverride {