Skip to content

Commit 85cb5a3

Browse files
geminiのバージョンを最新のに変更
1 parent eaef9b7 commit 85cb5a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

chrome-extension/src/background/detect_negative.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ai = new GoogleGenAI({
66

77
export async function detectNegative(text: string): Promise<boolean> {
88
const req = {
9-
model: 'gemini-2.0-flash',
9+
model: 'gemini-3.1-flash-lite-preview',
1010
contents: `「${text}」がネガティブな文かどうか判断して、ネガティブなら1を、そうでないなら0を出力してください。必ず1か0のどちらかを出力してください。`,
1111
};
1212

chrome-extension/src/background/popturn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ai = new GoogleGenAI({
77
export async function popturn(text: string): Promise<string> {
88
// リクエストを組み立て
99
const req = {
10-
model: 'gemini-2.0-flash',
10+
model: 'gemini-3.1-flash-lite-preview',
1111
contents: `「${text}」を同じくらいな文字数のポジティブな文章に変換して語尾を"ピョン"にしてください。必ず変換後の文章のみを返してください。`,
1212
};
1313

0 commit comments

Comments
 (0)