Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class AiAnalysisService implements IAiAnalysisService {
private final Gson gson;
private final IRankHistoryService rankHistoryService;

private static final String GEMINI_API_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite:generateContent";
private static final String GEMINI_API_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent";
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

The Gemini endpoint/model is hard-coded in a constant. Since model names can change and may differ across environments, consider moving the model (or full URL) to configuration (e.g., application.properties via @value) alongside the API key so updates don’t require a redeploy and can be validated per environment.

Copilot uses AI. Check for mistakes.
private static final String UNKNOWN = "Unknown";
private static final String PARTS = "parts";
private static final String CANDIDATES = "candidates";
Expand Down
Binary file added utils/demo/demoFinal.mp4
Binary file not shown.
Loading