Skip to content

feat(aichat): 既定の Gemini モデルを gemini-3.8-flash に更新 - #29

Merged
hitalin merged 1 commit into
masterfrom
feat/gemini-3.8-flash
Oct 9, 2026
Merged

hitalin merged 1 commit into
masterfrom
feat/gemini-3.8-flash

Conversation

@hitalin

@hitalin hitalin commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

なぜ

Gemini API の無料枠の範囲で、使えるいちばん新しいモデルにしたい。今の既定値 gemini-2.5-flash は古い。

変更

  • 既定モデルを gemini-3.8-flash に変更(aichat と noting)
  • geminiGroundingModel を追加(既定 gemini-2.5-flash)。Google Search grounding を使うときだけこちらのモデルを使う
    • 無料枠の Gemini 3.x 系は grounding に対応していない(料金ページで「Not available」)。2.5 Flash なら 1 日 500 回まで無料
  • README と example.json に新しい設定を追記

デプロイ時の注意

  • サーバー上の config.json(git 管理外)に "geminiModel": "gemini-2.5-flash" と書かれていると、新しい既定値が使われない。この行を消すか、gemini-3.8-flash に書き換えること
  • Gemini API を使っている Google プロジェクトには課金アカウントを紐付けないこと。紐付けると無料枠から有料 Tier に上がる

テスト

  • tsc --noEmit が通ること、npm test(71 件)がパスすることを確認

🤖 Generated with Claude Code

Summary by CodeRabbit

  • 変更点
    • Geminiの標準モデルが gemini-3.8-flash になりました。
    • Google検索グラウンディング用モデルを設定できるようになりました。初期設定では gemini-2.5-flash を使用します。
    • グラウンディングの有無に応じて、使用するモデルと接続先が切り替わります。

無料枠で使える最新モデルの gemini-3.8-flash を既定にした。
ただし無料枠の Gemini 3.x 系は Google Search grounding に対応していないため、
grounding を使うときだけ geminiGroundingModel(既定 gemini-2.5-flash)を使う。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7e88a2b1-74c3-406d-a64a-20257f9e81b7
📥 Commits

Reviewing files that changed from the base of the PR and between f26df48 and 0dbc25f.

📒 Files selected for processing (5)
  • README.md
  • example.json
  • src/modules/aichat/index.ts
  • src/modules/noting/index.ts
  • src/utils/normalize-config.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

通常モデルの既定値を gemini-3.8-flash に変更しました。grounding用モデル geminiGroundingModel を追加し、groundingの有無に応じてAPI呼び出しに使用するモデルとURLを選択します。

Changes

Geminiモデル設定とgrounding

Layer / File(s) Summary
モデル設定と既定値
src/utils/normalize-config.ts, src/modules/aichat/index.ts, src/modules/noting/index.ts, README.md, example.json
Config に任意の文字列プロパティ geminiGroundingModel を追加しました。通常モデルの既定値を gemini-3.8-flash に変更し、READMEと設定例にgrounding用モデルの値を追加しました。
grounding時のAPI呼び出し
src/modules/aichat/index.ts
groundingの有無に応じて使用するモデルを選びます。grounding時は選択モデルのAPI URLを使い、groundingを使わない場合は従来の aiChat.api を使います。ログにも選択したモデルを出力します。

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 0dbc2

The default model and grounding-specific model selection are supported by the inspected paths. No actionable merge blocker remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed タイトルは、aichat と noting の既定 Gemini モデルを gemini-3.8-flash に変更する主な内容を簡潔かつ正確に示しています。
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

うさぎは設定をぴょんと読み
新しいモデル名を見つけたよ
groundingの時は専用モデル
APIの道を選び分け
月の下でふわりと祝う

Comment @coderabbitai help to get the list of available commands.

@hitalin
hitalin merged commit f66a3c9 into master Oct 9, 2026
4 checks passed
@hitalin
hitalin deleted the feat/gemini-3.8-flash branch October 9, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant