fix: add top_p 0.95, stricter word completion rules
This commit is contained in:
@@ -1225,6 +1225,7 @@ app.post("/api/deepseek/chat", requireAuth, async (req, res) => {
|
|||||||
messages: sanitizedMessages,
|
messages: sanitizedMessages,
|
||||||
temperature,
|
temperature,
|
||||||
max_tokens: clampedMaxTokens,
|
max_tokens: clampedMaxTokens,
|
||||||
|
top_p: 0.95,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1286,6 +1287,7 @@ app.post("/api/deepseek/chat/stream", requireAuth, async (req, res) => {
|
|||||||
messages: sanitizedMessages,
|
messages: sanitizedMessages,
|
||||||
temperature,
|
temperature,
|
||||||
max_tokens: clampedMaxTokens,
|
max_tokens: clampedMaxTokens,
|
||||||
|
top_p: 0.95,
|
||||||
stream: true,
|
stream: true,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ GENRE: ${story.genre.join(", ")}
|
|||||||
SETTING: ${settingInfo}
|
SETTING: ${settingInfo}
|
||||||
|
|
||||||
IMPORTANT: Respond ONLY in language: ${story.language}.
|
IMPORTANT: Respond ONLY in language: ${story.language}.
|
||||||
CRITICAL: Use PERFECT grammar and spelling. Double-check every word for typos. No misspellings allowed.
|
CRITICAL: Write every word COMPLETELY. No truncated or cut-off words. Perfect grammar and spelling required. Double-check every word for typos.
|
||||||
|
|
||||||
=== PLAYER CHARACTER ===
|
=== PLAYER CHARACTER ===
|
||||||
Name: ${player?.name || "Hero"}
|
Name: ${player?.name || "Hero"}
|
||||||
@@ -256,7 +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!
|
CRITICAL: Write every word COMPLETELY. No truncated or cut-off words. Perfect grammar and spelling required!
|
||||||
|
|
||||||
=== PLAYER CHARACTER ===
|
=== PLAYER CHARACTER ===
|
||||||
Name: ${player?.name || "Hero"}
|
Name: ${player?.name || "Hero"}
|
||||||
@@ -314,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
|
||||||
• CRITICAL: Use PERFECT grammar and spelling. Double-check every word. No typos or misspellings!
|
• CRITICAL: Write every word COMPLETELY. No truncated words. Perfect grammar required!
|
||||||
• 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