Claude: Add prefill/tool interaction warning

c3078a67e1616c9162da9034346f121de3e7eae0

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

2 files changed, +15 -0Ignore whitespace
public/css/toggle-dependent.css+11 -0
@@ -463,3 +463,14 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint {
463label[for="trim_spaces"]:has(input:checked) i.warning {463label[for="trim_spaces"]:has(input:checked) i.warning {
464 display: none;464 display: none;
465}465}
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 @@
1873 </div>1873 </div>
1874 <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>1874 <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>
1875 </div>1875 </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>
1876 <label for="claude_use_sysprompt" class="checkbox_label widthFreeExpand">1880 <label for="claude_use_sysprompt" class="checkbox_label widthFreeExpand">
1877 <input id="claude_use_sysprompt" type="checkbox" />1881 <input id="claude_use_sysprompt" type="checkbox" />
1878 <span data-i18n="Use system prompt (Claude 2.1+ only)">1882 <span data-i18n="Use system prompt (Claude 2.1+ only)">