1
0
Fork 0

Some prompt tweaks

This commit is contained in:
Pabloader 2026-03-26 19:21:57 +00:00
parent f5479690f9
commit 3db25c5af3
3 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import { Sparkles, ChevronsRight } from "lucide-preact";
import clsx from "clsx"; import clsx from "clsx";
import { ContentEditable } from "@common/components/ContentEditable"; import { ContentEditable } from "@common/components/ContentEditable";
const CONTINUE_PROMPT = "Continue the story forward.\nUse `edit_text` tool in append mode to add new text to the story."; const CONTINUE_PROMPT = "Continue the story forward.\nUse `edit_text` tool in append mode to add new text to the story.\nWait for the approval after adding.";
interface RoleHeaderProps { interface RoleHeaderProps {
message: ChatMessage; message: ChatMessage;

View File

@ -41,6 +41,7 @@ export enum LocationScale {
Room = 'room', Room = 'room',
House = 'house', House = 'house',
Street = 'street', Street = 'street',
Village = 'village',
City = 'city', City = 'city',
Region = 'region', Region = 'region',
Country = 'country', Country = 'country',

View File

@ -399,10 +399,10 @@ export namespace Tools {
dispatchEdit(currentText + '\n' + args.new_text); dispatchEdit(currentText + '\n' + args.new_text);
appState.dispatch({ type: 'SET_CURRENT_TAB', id: appState.currentStory.id, tab }); appState.dispatch({ type: 'SET_CURRENT_TAB', id: appState.currentStory.id, tab });
let message = cropped let message = cropped
? `Added text:\n${args.new_text.split('\n').filter(l => l.trim()).map(l => '> ' + l).join('\n')}\n\nWarning: The rest was cropped due to ${LINES_LIMIT} lines limit! Write less next time.` ? `Added text:\n${args.new_text.split('\n').filter(l => l.trim()).map(l => '> ' + l).join('\n')}\n\nNote: The rest was cropped due to ${LINES_LIMIT} lines limit!`
: `Text appended to ${target} successfully.`; : `Text appended to ${target} successfully.`;
message += `\nNote: you can't continue until user's approval, stop.` message += `\nNote: you can't continue nor add more text until user's approval. Stop any attempts and wait.`
return message; return message;
} }