Improve default AutoSuggest prompt, User,Character name placeholder applied

This commit is contained in:
LL
2023-05-31 18:12:30 +09:00
parent cf93e5c6f1
commit 7e6a0940dc
2 changed files with 13 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
import { CopyIcon, LanguagesIcon, RefreshCcwIcon } from "lucide-svelte";
import { alertConfirm } from "src/ts/alert";
import { language } from "src/lang";
import { replacePlaceholders } from "../../ts/util";
export let send;
export let messageInput;
@@ -50,7 +51,7 @@
const promptbody:OpenAIChat[] = [
{
role:'system',
content: $DataBase.autoSuggestPrompt
content: replacePlaceholders($DataBase.autoSuggestPrompt, currentChar.name)
}
,
{