Skip to content

Commit 61bc6bc

Browse files
committed
Update
1 parent 79f0895 commit 61bc6bc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,7 @@ extension WindowBaseCommandHandler {
406406
return ""
407407
}()
408408

409-
if specifiedSystemPrompt != nil {
410-
await chat.chatGPTService.mutateHistory { history in
411-
history.append(.init(
412-
role: .assistant,
413-
content: "",
414-
summary: "\(customCommandPrefix)System prompt is updated."
415-
))
416-
}
417-
} else if !customCommandPrefix.isEmpty {
409+
if specifiedSystemPrompt != nil || extraSystemPrompt != nil {
418410
await chat.chatGPTService.mutateHistory { history in
419411
history.append(.init(
420412
role: .assistant,

0 commit comments

Comments
 (0)