Some prompt tweaks
This commit is contained in:
parent
f5479690f9
commit
3db25c5af3
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue