murtaza-2007 Claude Sonnet 4.6 commited on
Commit
bc32a44
Β·
1 Parent(s): 19c6bad

fix: correct Gemini model name (gemini-2.0-flash, not 3.1)

Browse files

gemini-3.1-flash does not exist β€” Google's naming is 1.5/2.0/2.5.
All LLM explain/summary calls were returning reason:"error" because
the API 404'd on the model id.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. config.py +2 -2
config.py CHANGED
@@ -32,7 +32,7 @@ WIKI_HEADERS = {
32
 
33
  # ── Search ───────────────────────────────────────────────────────────────
34
  MAX_HOPS = 100 # enforced as expansion-count cap, not path-length cap (see search.py)
35
- TOP_DISPLAY = 25 # max neighbours sent to frontend per step
36
 
37
  # ── Scoring ──────────────────────────────────────────────────────────────
38
  # Architect plan (Honest Bidirectional Meeting-Check Rewrite): the target's
@@ -148,7 +148,7 @@ HETIONET_URL = ("https://github.com/hetio/hetionet/raw/main/"
148
  # The key is a backend-only secret β€” never committed, never sent to the
149
  # browser (only /api/llm/status's booleans are). See core/llm.py.
150
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
151
- GEMINI_MODEL = os.getenv("GEMINI_MODEL", "gemini-3.1-flash")
152
  GEMINI_RPM = int(os.getenv("GEMINI_RPM", "12")) # soft calls/min budget β€” stay under the free-tier limit
153
  GEMINI_COOLDOWN_S = int(os.getenv("GEMINI_COOLDOWN_S", "60")) # pause after an upstream 429/5xx
154
  GEMINI_TIMEOUT_S = float(os.getenv("GEMINI_TIMEOUT_S", "12"))
 
32
 
33
  # ── Search ───────────────────────────────────────────────────────────────
34
  MAX_HOPS = 100 # enforced as expansion-count cap, not path-length cap (see search.py)
35
+ TOP_DISPLAY = 35 # max neighbours sent to frontend per step
36
 
37
  # ── Scoring ──────────────────────────────────────────────────────────────
38
  # Architect plan (Honest Bidirectional Meeting-Check Rewrite): the target's
 
148
  # The key is a backend-only secret β€” never committed, never sent to the
149
  # browser (only /api/llm/status's booleans are). See core/llm.py.
150
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
151
+ GEMINI_MODEL = os.getenv("GEMINI_MODEL", "gemini-2.0-flash")
152
  GEMINI_RPM = int(os.getenv("GEMINI_RPM", "12")) # soft calls/min budget β€” stay under the free-tier limit
153
  GEMINI_COOLDOWN_S = int(os.getenv("GEMINI_COOLDOWN_S", "60")) # pause after an upstream 429/5xx
154
  GEMINI_TIMEOUT_S = float(os.getenv("GEMINI_TIMEOUT_S", "12"))