diff --git a/README.md b/README.md index 993a255..344be35 100644 --- a/README.md +++ b/README.md @@ -963,6 +963,8 @@ Create `~/.agentmemory/.env`: # GEMINI_API_KEY=... # OPENROUTER_API_KEY=... # MINIMAX_API_KEY=... +# Opt-in Gemini model +# GEMINI_MODEL="gemini-2.5-flash" # Opt-in Claude-subscription fallback (spawns @anthropic-ai/claude-agent-sdk); # leave OFF unless you understand the Stop-hook recursion risk (#149 follow-up): # AGENTMEMORY_ALLOW_AGENT_SDK=true diff --git a/src/config.ts b/src/config.ts index 2898552..c37aea4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -76,7 +76,7 @@ function detectProvider(env: Record): ProviderConfig { } return { provider: "gemini", - model: env["GEMINI_MODEL"] || "gemini-2.0-flash", + model: env["GEMINI_MODEL"] || "gemini-flash-latest", maxTokens, }; }