fix: gemini system prompt overwrite
This commit is contained in:
1 parent
7384b0925e
commit
3638bf149c
2 files changed
+28
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user