Refactor (10)
This commit is contained in:
2
index.ts
2
index.ts
@@ -65,9 +65,7 @@ const replyJobPrompt = getSystemPrompt(
|
|||||||
async function rephrase(text: string) {
|
async function rephrase(text: string) {
|
||||||
await using rephraseSession = new LlmSession(
|
await using rephraseSession = new LlmSession(
|
||||||
model,
|
model,
|
||||||
getSystemPrompt(
|
|
||||||
"ユーザが与えたテキストを「~です」「~ます」調(丁寧な文体)で言い換えたものを、そのまま出力してください。",
|
"ユーザが与えたテキストを「~です」「~ます」調(丁寧な文体)で言い換えたものを、そのまま出力してください。",
|
||||||
),
|
|
||||||
);
|
);
|
||||||
await rephraseSession.init();
|
await rephraseSession.init();
|
||||||
const res = parseResponse(
|
const res = parseResponse(
|
||||||
|
|||||||
Reference in New Issue
Block a user