Skip to content
Open
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
12 changes: 12 additions & 0 deletions model_cost/model_cost.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
"input_token_price_per_million": 0.0966,
"output_token_price_per_million": 0.1925
},
"deepseek/deepseek-v4-flash@high": {
"input_token_price_per_million": 0.0966,
"output_token_price_per_million": 0.1925
},
"deepseek/deepseek-v4-flash-0731": {
"input_token_price_per_million": 0.14,
"output_token_price_per_million": 0.42
Expand Down Expand Up @@ -199,6 +203,10 @@
"input_token_price_per_million": 0.5,
"output_token_price_per_million": 3
},
"google/gemini-3-flash-preview@minimal": {
"input_token_price_per_million": 0.5,
"output_token_price_per_million": 3
},
"google/gemini-3.1-flash-lite": {
"input_token_price_per_million": 0.25,
"output_token_price_per_million": 1.5
Expand Down Expand Up @@ -235,6 +243,10 @@
"input_token_price_per_million": 0.75,
"output_token_price_per_million": 3.75
},
"google/gemini-3.8-flash@low": {
"input_token_price_per_million": 0.75,
"output_token_price_per_million": 3.75
},
"google/gemma-3n-e4b-it": {
"input_token_price_per_million": 0.02,
"output_token_price_per_million": 0.04
Expand Down
5 changes: 3 additions & 2 deletions model_cost/model_profiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ models:
source: "https://openrouter.ai/deepseek/deepseek-v3.2"
"deepseek/deepseek-v4-flash":
price: {input: 0.0966, output: 0.1925}
aliases: ["deepseek/deepseek-v4-flash@high"]
as_of: "2026-11-16"
source: "https://openrouter.ai/deepseek/deepseek-v4-flash"
"deepseek/deepseek-v4-flash-0731":
Expand Down Expand Up @@ -171,7 +172,7 @@ models:
source: null
"google/gemini-3-flash-preview":
price: {input: 0.5, output: 3}
aliases: ["gemini-3-flash-preview"]
aliases: ["gemini-3-flash-preview", "google/gemini-3-flash-preview@minimal"]
as_of: "2026-09-27"
source: null
"google/gemini-3.1-flash-lite":
Expand All @@ -198,7 +199,7 @@ models:
source: "https://openrouter.ai/google/gemini-3.7-flash"
"google/gemini-3.8-flash":
price: {input: 0.75, output: 3.75}
aliases: ["gemini-3.8-flash"]
aliases: ["gemini-3.8-flash", "google/gemini-3.8-flash@low"]
as_of: "2026-11-16"
source: "https://openrouter.ai/google/gemini-3.8-flash"
"google/gemma-3n-e4b-it":
Expand Down
15 changes: 15 additions & 0 deletions router_inference/config/liner-router-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"pipeline_params": {
"router_name": "liner-router-v2",
"router_cls_name": "external_prediction_file",
"models": [
"deepseek/deepseek-v4-flash",
"deepseek/deepseek-v4-flash@high",
"google/gemini-3-flash-preview@minimal",
"google/gemini-3.8-flash@low",
"google/gemma-4-31b-it"
],
"description": "Liner Router v2: a fixed routing table keyed by the query's rule-based task type and, for multiple-choice questions, the number of answer options. Some cells answer with one model; others ask two or three cheap models first and keep their answer when they agree, escalating to gemini-3.8-flash (low reasoning, answer-only instruction) otherwise. Probe calls are charged in router_usage.",
"affiliation": "Liner"
}
}

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions router_inference/predictions/liner-router-v2.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions universal_model_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
"upstage/solar-pro3",
"upstage/solar-pro4",
"z-ai/glm-5.3-flash",
# liner-router-v2
"deepseek/deepseek-v4-flash@high",
"google/gemini-3-flash-preview@minimal",
"google/gemini-3.8-flash@low",
]


Expand Down