We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b19a55 commit 1ef6359Copy full SHA for 1ef6359
Core/Sources/ChatTab/ChatGPT/ChatProvider.swift
@@ -17,9 +17,14 @@ public final class ChatProvider: ObservableObject {
17
.last?
18
.text else { return defaultTitle }
19
if lastMessageText.isEmpty { return defaultTitle }
20
- return lastMessageText
+ let trimmed = lastMessageText
21
.trimmingCharacters(in: .punctuationCharacters)
22
.trimmingCharacters(in: .whitespacesAndNewlines)
23
+ if trimmed.starts(with: "```") {
24
+ return "Code Block"
25
+ } else {
26
+ return trimmed
27
+ }
28
}
29
30
public var extraSystemPrompt = ""
0 commit comments