Skip to content

Gemini のモデルを安価なモデルに変更#78

Merged
miyakoshi-3854 merged 1 commit intomainfrom
fix/77/change-model
Jul 27, 2025
Merged

Gemini のモデルを安価なモデルに変更#78
miyakoshi-3854 merged 1 commit intomainfrom
fix/77/change-model

Conversation

@nkoji21
Copy link
Member

@nkoji21 nkoji21 commented Jul 27, 2025

📝 変更内容

何を変更したか

  • geminiのモデルを、2.5-flash から 1.5-flash に変更

なぜ変更したか

  • ハッカソンが終わり、高価なモデルを使う必要性が無くなったため。
  • gemini api の無料枠を大事にしたい

🧪 テスト・確認項目

動作確認

  • プルリクエストにラベルを追加したか
  • アサインに自分を追加したか
  • ローカル環境で動作確認済み
  • 既存機能に影響がないことを確認
  • モバイル表示を確認(該当する場合)

📸 スクリーンショット(UI変更がある場合)

Before After
Before After

💡 補足事項


🔗 関連Issue

Closes #77

@nkoji21 nkoji21 self-assigned this Jul 27, 2025
Copilot AI review requested due to automatic review settings July 27, 2025 11:21
@nkoji21 nkoji21 requested a review from miyakoshi-3854 as a code owner July 27, 2025 11:21
@nkoji21 nkoji21 added the ⚙️ バックエンド サーバーやデータベースなど、裏側の処理に関するタスク label Jul 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the Gemini AI model from the more expensive gemini-2.5-flash to the less expensive gemini-1.5-flash to conserve API quota costs after a hackathon ended.

  • Model downgrade from gemini-2.5-flash to gemini-1.5-flash
Comments suppressed due to low confidence (1)

apps/api/src/services/google/gemini-api.ts:9

  • The model name 'gemini-1.5-flash' may not be a valid Gemini API model. Based on my knowledge, Google's Gemini models typically follow naming patterns like 'gemini-1.5-pro' or 'gemini-1.0-pro'. Please verify that 'gemini-1.5-flash' is a valid model name in the Gemini API documentation.
const MODEL_NAME = 'gemini-1.5-flash';

@miyakoshi-3854 miyakoshi-3854 merged commit db1f7e6 into main Jul 27, 2025
1 check passed
@miyakoshi-3854 miyakoshi-3854 deleted the fix/77/change-model branch July 27, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ バックエンド サーバーやデータベースなど、裏側の処理に関するタスク

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ハッカソン終わったからモデルを軽量なやつに戻す

3 participants