Added anthropic_system_prompt option in the options page. See #549
This commit is contained in:
parent
dc3c75c90e
commit
6211fa5a85
3 changed files with 22 additions and 0 deletions
|
|
@ -1688,5 +1688,13 @@
|
||||||
"DeselectAll": {
|
"DeselectAll": {
|
||||||
"message": "Deselect All",
|
"message": "Deselect All",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"Anthropic_System_Prompt": {
|
||||||
|
"message": "System Prompt",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"Anthropic_System_Prompt_Info": {
|
||||||
|
"message": "You can improve Claude performance by using a System Prompt to give it a role. This technique, known as role prompting, is the most powerful way to use system prompts with Claude. The right role can turn Claude from a general assistant into your virtual domain expert.",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ export const prefs_default = {
|
||||||
anthropic_model: '',
|
anthropic_model: '',
|
||||||
anthropic_version: '2023-06-01',
|
anthropic_version: '2023-06-01',
|
||||||
anthropic_max_tokens: 4096,
|
anthropic_max_tokens: 4096,
|
||||||
|
anthropic_system_prompt: '',
|
||||||
dynamic_menu_force_enter: false,
|
dynamic_menu_force_enter: false,
|
||||||
dynamic_menu_order_alphabet: true,
|
dynamic_menu_order_alphabet: true,
|
||||||
placeholders_use_default_value: false,
|
placeholders_use_default_value: false,
|
||||||
|
|
|
||||||
|
|
@ -397,6 +397,19 @@ export async function injectConnectionUI({
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="conntype_anthropic_api${tr_class ? ` ${tr_class}` : ''}">
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<span class="opt_title">__MSG_Anthropic_System_Prompt__</span>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<textarea id="anthropic_system_prompt" name="anthropic_system_prompt" class="option-input option-textarea"></textarea>
|
||||||
|
<br>__MSG_Anthropic_System_Prompt_Info__
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr class="conntype_anthropic_api${tr_class ? ` ${tr_class}` : ''}">
|
<tr class="conntype_anthropic_api${tr_class ? ` ${tr_class}` : ''}">
|
||||||
<td>
|
<td>
|
||||||
<label>
|
<label>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue