Merge branch 'staging' into sysprompt-divorce
This commit is contained in:
commit
1864b7d868
|
@ -100,7 +100,7 @@ import {
|
|||
proxies,
|
||||
loadProxyPresets,
|
||||
selected_proxy,
|
||||
initOpenai,
|
||||
initOpenAI,
|
||||
} from './scripts/openai.js';
|
||||
|
||||
import {
|
||||
|
@ -930,9 +930,10 @@ async function firstLoadInit() {
|
|||
addSafariPatch();
|
||||
await getClientVersion();
|
||||
await readSecretState();
|
||||
initLocales();
|
||||
await initLocales();
|
||||
initDefaultSlashCommands();
|
||||
initTextGenModels();
|
||||
initOpenAI();
|
||||
initSystemPrompts();
|
||||
await initPresetManager();
|
||||
await getSystemMessages();
|
||||
|
@ -942,7 +943,6 @@ async function firstLoadInit() {
|
|||
initKeyboard();
|
||||
initDynamicStyles();
|
||||
initTags();
|
||||
initOpenai();
|
||||
initBookmarks();
|
||||
await getUserAvatars(true, user_avatar);
|
||||
await getCharacters();
|
||||
|
|
|
@ -135,10 +135,11 @@ export async function hideChatMessageRange(start, end, unhide) {
|
|||
const message = chat[messageId];
|
||||
if (!message) continue;
|
||||
|
||||
message.is_system = hide;
|
||||
|
||||
// Also toggle "hidden" state for all visible messages
|
||||
const messageBlock = $(`.mes[mesid="${messageId}"]`);
|
||||
if (!messageBlock.length) continue;
|
||||
|
||||
message.is_system = hide;
|
||||
messageBlock.attr('is_system', String(hide));
|
||||
}
|
||||
|
||||
|
|
|
@ -3813,7 +3813,10 @@ jQuery(async () => {
|
|||
],
|
||||
helpString: `
|
||||
<div>
|
||||
Requests to generate an image and posts it to chat (unless <code>quiet=true</code> argument is specified).</code>.
|
||||
Requests to generate an image and posts it to chat (unless <code>quiet=true</code> argument is specified).
|
||||
</div>
|
||||
<div>
|
||||
Supported arguments: <code>${Object.values(triggerWords).flat().join(', ')}</code>.
|
||||
</div>
|
||||
<div>
|
||||
Anything else would trigger a "free mode" to make generate whatever you prompted. Example: <code>/imagine apple tree</code> would generate a picture of an apple tree. Returns a link to the generated image.
|
||||
|
|
|
@ -4937,7 +4937,7 @@ function runProxyCallback(_, value) {
|
|||
return foundName;
|
||||
}
|
||||
|
||||
export function initOpenai() {
|
||||
export function initOpenAI() {
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'proxy',
|
||||
callback: runProxyCallback,
|
||||
|
@ -4953,9 +4953,7 @@ export function initOpenai() {
|
|||
],
|
||||
helpString: 'Sets a proxy preset by name.',
|
||||
}));
|
||||
}
|
||||
|
||||
$(document).ready(async function () {
|
||||
$('#test_api_button').on('click', testApiConnection);
|
||||
|
||||
$('#scale-alt').on('change', function () {
|
||||
|
@ -5419,4 +5417,4 @@ $(document).ready(async function () {
|
|||
$('#openai_proxy_password_show').on('click', onProxyPasswordShowClick);
|
||||
$('#customize_additional_parameters').on('click', onCustomizeParametersClick);
|
||||
$('#openai_proxy_preset').on('change', onProxyPresetChange);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue