fix: increase max_tokens to 1500, stricter grammar rules
This commit is contained in:
@@ -88,7 +88,7 @@ export async function sendMessageStream(
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
messages,
|
messages,
|
||||||
temperature,
|
temperature,
|
||||||
max_tokens: 1000,
|
max_tokens: 1500,
|
||||||
}),
|
}),
|
||||||
signal,
|
signal,
|
||||||
});
|
});
|
||||||
@@ -199,7 +199,8 @@ LANGUAGE: ${story.language}
|
|||||||
GENRE: ${story.genre.join(", ")}
|
GENRE: ${story.genre.join(", ")}
|
||||||
SETTING: ${settingInfo}
|
SETTING: ${settingInfo}
|
||||||
|
|
||||||
IMPORTANT: Respond ONLY in language: ${story.language}. Use proper grammar and spelling.
|
IMPORTANT: Respond ONLY in language: ${story.language}.
|
||||||
|
CRITICAL: Use PERFECT grammar and spelling. Double-check every word for typos. No misspellings allowed.
|
||||||
|
|
||||||
=== PLAYER CHARACTER ===
|
=== PLAYER CHARACTER ===
|
||||||
Name: ${player?.name || "Hero"}
|
Name: ${player?.name || "Hero"}
|
||||||
@@ -255,6 +256,7 @@ RIGHT: **"Я ему не доверяю,"** пробормотала она.
|
|||||||
Descriptions and narration — plain text without any asterisks.
|
Descriptions and narration — plain text without any asterisks.
|
||||||
${oocRules}
|
${oocRules}
|
||||||
Respond in language: ${story.language}
|
Respond in language: ${story.language}
|
||||||
|
CRITICAL: Use PERFECT grammar and spelling. Double-check every word before writing. No typos or misspellings allowed!
|
||||||
|
|
||||||
=== PLAYER CHARACTER ===
|
=== PLAYER CHARACTER ===
|
||||||
Name: ${player?.name || "Hero"}
|
Name: ${player?.name || "Hero"}
|
||||||
@@ -312,7 +314,7 @@ export function buildDynamicContext(
|
|||||||
• Do NOT ask "What do you do?" — end with atmosphere, not questions
|
• Do NOT ask "What do you do?" — end with atmosphere, not questions
|
||||||
• Format dialogue: **"text"** (double asterisks = bold)
|
• Format dialogue: **"text"** (double asterisks = bold)
|
||||||
• React to player's words explicitly
|
• React to player's words explicitly
|
||||||
• Use proper grammar and spelling in the story language
|
• CRITICAL: Use PERFECT grammar and spelling. Double-check every word. No typos or misspellings!
|
||||||
• Characters can only be where they logically should be based on their last known location`
|
• Characters can only be where they logically should be based on their last known location`
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user