Claude: Add prefill/tool interaction warning

c3078a67e1616c9162da9034346f121de3e7eae0

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +15 -0Showing whitespace changes
public/css/toggle-dependent.css+11 -0
@@ -463,3 +463,14 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint {
463463label[for="trim_spaces"]:has(input:checked) i.warning {
464464 display: none;
465465}
466+
467+#claude_function_prefill_warning {
468+ display: none;
469+}
470+
471+#openai_settings:has(#openai_function_calling:checked):has(#claude_assistant_prefill:not(:placeholder-shown), #claude_assistant_impersonation:not(:placeholder-shown)) #claude_function_prefill_warning {
472+ display: flex;
473+ align-items: center;
474+ gap: 5px;
475+ margin: 10px 0;
476+}
public/index.html+4 -0
@@ -1873,6 +1873,10 @@
18731873 </div>
18741874 <textarea id="claude_assistant_impersonation" class="text_pole textarea_compact autoSetHeight" name="assistant_impersonation" rows="2" data-i18n="[placeholder]Start Claude's answer with..." placeholder="Start Claude's answer with..."></textarea>
18751875 </div>
1876+ <div id="claude_function_prefill_warning">
1877+ <i class="fa-solid fa-circle-info"></i>
1878+ <span>Prefills won't work when function calling is enabled and any tools are registered.</span>
1879+ </div>
18761880 <label for="claude_use_sysprompt" class="checkbox_label widthFreeExpand">
18771881 <input id="claude_use_sysprompt" type="checkbox" />
18781882 <span data-i18n="Use system prompt (Claude 2.1+ only)">