You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tool/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/ActiveDocumentChatContextCollector.swift
+37-18Lines changed: 37 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,28 @@ public final class ActiveDocumentChatContextCollector: ChatContextCollector {
45
45
varfunctions=[anyChatGPTFunction]()
46
46
47
47
if !isSensitive {
48
+
varfunctionPrompt="""
49
+
ONLY call it when one of the following conditions are satisfied:
50
+
- the user ask you about specific line from the latest message, \
Copy file name to clipboardExpand all lines: Tool/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/Functions/GetCodeCodeAroundLineFunction.swift
"Get the code at the given line. You must ONLY call it when the user give you a specific line or the user ask about an out of scope annotation. \n\(additionalDescription)"
35
+
"Get the code at the given line. \(additionalDescription)"
0 commit comments