Skip to content
Closed
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
12 changes: 8 additions & 4 deletions src/utils/model/openaiContextWindows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ const OPENAI_CONTEXT_WINDOWS: Record<string, number> = {
'google/gemini-2.5-pro': 1_048_576,

// Google (native via CLAUDE_CODE_USE_GEMINI)
'gemini-2.0-flash': 1_048_576,
'gemini-2.5-pro': 1_048_576,
'gemini-2.5-flash': 1_048_576,
'gemini-2.0-flash': 1_048_576,
'gemini-2.5-flash': 1_048_576,
'gemini-2.5-pro': 1_048_576,
'gemini-3-flash': 1_048_576,
'gemini-3.1-pro': 1_048_576,

// Ollama local models
// Llama 3.1+ models support 128k context natively (Meta official specs).
Expand Down Expand Up @@ -253,8 +255,10 @@ const OPENAI_MAX_OUTPUT_TOKENS: Record<string, number> = {

// Google (native via CLAUDE_CODE_USE_GEMINI)
'gemini-2.0-flash': 8_192,
'gemini-2.5-pro': 65_536,
'gemini-2.5-flash': 65_536,
'gemini-2.5-pro': 65_536,
'gemini-3-flash': 65_536,
'gemini-3.1-pro': 65_536,

// Ollama local models (conservative safe defaults)
'llama3.3:70b': 4_096,
Expand Down
Loading