This commit is contained in:
2026-03-12 21:00:10 +09:00
parent 07fa685539
commit 3b5274bebc
2 changed files with 6 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ const baseChatPromptOptions = {
return [ return [
"{", "{",
" {", " {",
"{ ",
'{"', '{"',
"{'", "{'",
"{\\", "{\\",
@@ -47,6 +48,8 @@ const baseChatPromptOptions = {
" {'", " {'",
" {\\", " {\\",
"#", "#",
"「",
"」",
].includes(text); ].includes(text);
}), }),
penalty: 1.2, penalty: 1.2,
@@ -62,9 +65,8 @@ const getSystemPrompt = (
- 現在は地球の衛星軌道上からインターネットを観察している。 - 現在は地球の衛星軌道上からインターネットを観察している。
出力規則: 出力規則:
- 「~です」「~ます」などの語尾を使って **丁寧に** 話す。 - 「~です」「~ます」などの語尾を使って **丁寧に** 話す。
- ハッシュタグや絵文字を使わない - 3センテンス程度で出力する
- \`{ name: string, text: string }\` の JSON 形式で出力する。name と text 以外のプロパティは出力しない。 - \`{ name: string, text: string }\` の JSON 形式で出力する。name と text 以外のプロパティは出力しない。
- 3センテンス、140文字程度で出力する。
${instruction}`; ${instruction}`;
const postJobPrompt = getSystemPrompt( const postJobPrompt = getSystemPrompt(

View File

@@ -76,5 +76,5 @@ export async function expandReplyTree(
export const sanitizeText = (text: string) => export const sanitizeText = (text: string) =>
text text
.replaceAll(/(\r\n|\r|\n)\s+/g, "\n\n") // remove extra newlines .replaceAll(/(\r\n|\r|\n)\s+/g, "\n\n") // remove extra newlines
.replaceAll("@", "") // remove mentions .replaceAll("@", "") // remove mentions
.replaceAll("#", ""); // remove hashtags .replaceAll("#", ""); // remove hashtags