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
/// Disable reference text functionality, will not show in UI either
30
+
/// </summary>
31
+
ReferenceTextDisabled,
32
+
/// <summary>
33
+
/// This will change the old reference text to a placeholder indicating it has changed and the new version will appear later in the chat history, exact placeholder text can be controlled via PlaceholderTextForReferenceTextRemoval.
34
+
/// </summary>
35
+
ChangeOldToPlaceholder,
36
+
/// <summary>
37
+
/// This leaves the old reference text in place in the chat history even if it changes later. It may eat up excess tokens but hopefully shouldn't be too confusing to the AI as it can see the newer version later. It also allows the AI to understand how the reference text has changed over time.
38
+
/// </summary>
39
+
LeaveOldInplace,
40
+
/// <summary>
41
+
/// UpdateInPlace means it appears in the chat history where it originally appeared, this might be confusing as the AI's answers were based on the old text and it may confuse the current AI as why the AI previously responded as it did.
42
+
/// </summary>
43
+
UpdateInPlace,
44
+
/// <summary>
45
+
/// This deletes the old reference text from the chat history entirely when it changes. This might cause confusion for the current AI as it won't know exactly what the previous AI was basing its responses off.
46
+
/// </summary>
47
+
DeleteOld,
48
+
49
+
}
50
+
/// <summary>
51
+
/// For large reference texts we don't want to keep sending them in the chat history if they change so this controls how we handle them. Depending on the action may cause confusion for the AI or waste tokens, ChangeOldToPlaceholder is likely best.
/// This is the message header used at the start of a message to the AI providing some sort of reference text that will appear in a codeblock. For example "Users current webpage html"
57
+
/// </summary>
58
+
stringReferenceTextHeader=>"Reference Text";
59
+
stringPlaceholderTextForReferenceTextRemoval=>$"The old content for {ReferenceTextHeader} was here but changed. It has been removed to shorten history new version found later.";
stringAIAdditionalSystemPrompt=>"If the language supports named capture groups, use these by default. "+
67
+
"If the user has ignoring patterned whitespace enabled in the options, use multi-lines and minimal in-regex comments for complex regexes with nice whitespace formatting to make it more readable. ";
68
+
69
+
stringIAIEngine.ReferenceTextHeader=>"Users current target text";
70
+
stringIAIEngine.GetSystemPrompt()=>$"You are a {Name}{AIPatternType} expert assistant. The user has questions about their {AIPatternType} patterns and target text. "+
"If the language supports named capture groups, use these by default. "+
112
-
"If the user has ignoring patterned whitespace enabled in the options, use multi-lines and minimal in-regex comments for complex regexes with nice whitespace formatting to make it more readable. "+
113
-
$"They currently have these engine options enabled: {EngineOptions}";
0 commit comments