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
2 changes: 1 addition & 1 deletion apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ LOG_ZOD_ERRORS=true

# --- Google Vertex ---
# DEFAULT_LLM_PROVIDER=google
# DEFAULT_LLM_MODEL=gemini-2.5-pro
# DEFAULT_LLM_MODEL=gemini-3.0-flash-preview
Comment thread
coderabbitai[bot] marked this conversation as resolved.
# ECONOMY_LLM_PROVIDER=google
# ECONOMY_LLM_MODEL=gemini-2.5-flash
# GOOGLE_API_KEY=
Expand Down
2 changes: 1 addition & 1 deletion apps/web/utils/llms/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function selectModel(
};
}
case Provider.AI_GATEWAY: {
const modelName = aiModel || "google/gemini-2.5-pro";
const modelName = aiModel || "google/gemini-3-flash";
const aiGatewayApiKey = aiApiKey || env.AI_GATEWAY_API_KEY;
const gateway = createGateway({ apiKey: aiGatewayApiKey });
return {
Expand Down
23 changes: 19 additions & 4 deletions apps/web/utils/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ const gemini2_5pro = {
output: 10 / 1_000_000,
};

const gemini3_0flash = {
input: 0.5 / 1_000_000,
output: 3 / 1_000_000,
};

const gemini3_0pro = {
input: 2 / 1_000_000,
output: 12 / 1_000_000,
};

const costs: Record<
string,
{
Expand Down Expand Up @@ -131,16 +141,21 @@ const costs: Record<
output: 0.3 / 1_000_000,
},
"gemini-2.0-flash": gemini2_5flash,
"gemini-2.5-flash": gemini2_5flash,
"gemini-3-flash": gemini3_0flash,
"gemini-3-flash-preview": gemini3_0flash,
"gemini-3-pro": gemini3_0pro,
"gemini-3-pro-preview": gemini3_0pro,
"google/gemini-2.0-flash-001": gemini2_5flash,
"google/gemini-2.5-flash-preview-05-20": gemini2_5flash,
"google/gemini-2.5-pro-preview-03-25": gemini2_5pro,
"google/gemini-2.5-pro-preview-06-05": gemini2_5pro,
"google/gemini-2.5-pro-preview": gemini2_5pro,
"google/gemini-2.5-pro": gemini2_5pro,
"google/gemini-3-pro-preview": {
input: 2 / 1_000_000,
output: 12 / 1_000_000,
},
"google/gemini-3-flash": gemini3_0flash,
"google/gemini-3-flash-preview": gemini3_0flash,
"google/gemini-3-pro": gemini3_0pro,
"google/gemini-3-pro-preview": gemini3_0pro,
"meta-llama/llama-4-maverick": {
input: 0.2 / 1_000_000,
output: 0.85 / 1_000_000,
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ Full guide: https://docs.getinboxzero.com/self-hosting/microsoft-oauth`,
default: "claude-sonnet-4-5-20250929",
economy: "claude-haiku-4-5-20251001",
},
openai: { default: "gpt-4.1", economy: "gpt-4.1-mini" },
google: { default: "gemini-2.5-pro", economy: "gemini-2.5-flash" },
openai: { default: "gpt-5.1", economy: "gpt-5.1-mini" },
Comment thread
elie222 marked this conversation as resolved.
google: { default: "gemini-3-flash", economy: "gemini-2-5-flash" },
Comment on lines +408 to +409
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Update model identifiers to valid, current API names.

The OpenAI economy model is configured with an invalid identifier that will cause API failures:

  • Line 408: gpt-5.1-mini does not exist. Use gpt-5-mini instead.
  • Line 408: gpt-5.1 is superseded. Use gpt-5.2 as the current flagship default.

Line 409 Google models are correct.

🤖 Prompt for AI Agents
In packages/cli/src/main.ts around lines 408 to 409, the OpenAI model
identifiers are invalid/outdated: replace "gpt-5.1" with "gpt-5.2" for the
default model and replace "gpt-5.1-mini" with "gpt-5-mini" for the economy
model; keep the Google entries unchanged. Ensure the updated strings exactly
match the new API names and run a quick lint/test to verify no other references
need updating.

openrouter: {
default: "anthropic/claude-sonnet-4.5",
economy: "anthropic/claude-haiku-4.5",
Expand Down
Loading