Claude: Add prefill/tool interaction warning

This commit is contained in:
Cohee 2024-10-04 23:33:31 +03:00
parent 01fc5113d7
commit c3078a67e1
2 changed files with 15 additions and 0 deletions

View File

@ -463,3 +463,14 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint {
label[for="trim_spaces"]:has(input:checked) i.warning {
display: none;
}
#claude_function_prefill_warning {
display: none;
}
#openai_settings:has(#openai_function_calling:checked):has(#claude_assistant_prefill:not(:placeholder-shown), #claude_assistant_impersonation:not(:placeholder-shown)) #claude_function_prefill_warning {
display: flex;
align-items: center;
gap: 5px;
margin: 10px 0;
}

View File

@ -1873,6 +1873,10 @@
</div>
<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>
</div>
<div id="claude_function_prefill_warning">
<i class="fa-solid fa-circle-info"></i>
<span>Prefills won't work when function calling is enabled and any tools are registered.</span>
</div>
<label for="claude_use_sysprompt" class="checkbox_label widthFreeExpand">
<input id="claude_use_sysprompt" type="checkbox" />
<span data-i18n="Use system prompt (Claude 2.1+ only)">