Skip to content

Commit 3f5b639

Browse files
committed
chore: use gemini-2.0-flash
1 parent 16f9ed5 commit 3f5b639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/translator/translate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ${prh}
4444
`.trim();
4545

4646
const model = this.#genAI.getGenerativeModel({
47-
model: 'gemini-1.5-flash',
47+
model: 'gemini-2.0-flash',
4848
generationConfig: {
4949
responseMimeType: 'application/json',
5050
temperature: 0.2,
@@ -60,7 +60,7 @@ ${prh}
6060
for (const block of blocks) {
6161
const { response } = await chatSession.sendMessage([
6262
{
63-
text: '次の段落を翻訳してください。\n\n',
63+
text: '次のテキストに含まれる英語を日本語に翻訳してください。\n\n',
6464
},
6565
{
6666
text: JSON.stringify({ text: block }),

0 commit comments

Comments
 (0)