We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47464b9 commit aebdacaCopy full SHA for aebdaca
2 files changed
Core/Sources/ChatTab/ChatGPT/ChatProvider.swift
@@ -18,6 +18,8 @@ public final class ChatProvider: ObservableObject {
18
.text else { return defaultTitle }
19
if lastMessageText.isEmpty { return defaultTitle }
20
return lastMessageText
21
+ .trimmingCharacters(in: .punctuationCharacters)
22
+ .trimmingCharacters(in: .whitespacesAndNewlines)
23
}
24
25
public var extraSystemPrompt = ""
Tool/Sources/LangChain/Agents/ChatAgent.swift
@@ -102,7 +102,7 @@ public class ChatAgent: Agent {
102
(Please continue with `Thought:` or `Final Answer:`)
103
""")
104
105
-
+
106
public func validateTools(tools: [AgentTool]) throws {
107
// no validation
108
0 commit comments