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
14 changes: 14 additions & 0 deletions autogpt_platform/backend/backend/data/llm_registry/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,20 @@ def _build_catalog() -> CatalogPayload:
output_credits_per_1m=1800.0,
),
),
CatalogModel(
slug="google/gemini-3.8-flash",
display_name="Gemini 3.8 Flash",
provider="open_router",
creator="google",
context_window=1048576,
max_output_tokens=65536,
price_tier=1,
cost=CatalogModelCost(
run_credits=3,
input_credits_per_1m=112.5,
output_credits_per_1m=562.5,
),
),
CatalogModel(
slug="gryphe/mythomax-l2-13b",
display_name="MythoMax L2 13B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,24 @@ def test_claude_fable_5_1_bills_at_authored_rates():
assert fable_entry.context_window == 200000


def test_gemini_3_8_flash_bills_at_authored_rates():
"""Gemini 3.8 Flash (OpenRouter, Google intro list price $0.75/$3.75
per 1M through 2026-12-31) — flat tier and per-1M projections must
match the authored catalog entry."""
flash = LLMModel("google/gemini-3.8-flash")
assert MODEL_COST[flash] == 3
assert TOKEN_COST[flash].model_dump() == {
"input": 112.5,
"output": 562.5,
"cache_read": 0.0,
"cache_creation": 0.0,
}
assert MODEL_METADATA[flash].max_output_tokens == 65536
flash_entry = next(m for m in CATALOG.models if m.slug == "google/gemini-3.8-flash")
assert flash_entry.price_tier == 1
assert flash_entry.context_window == 1048576


def test_provider_usd_prices_are_all_or_nothing():
"""A half-authored provider USD price must refuse to construct — it
would silently underprice against the transport family default."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def _missing_(cls, value: object) -> "LLMModel | None":
GEMINI_2_5_FLASH = "google/gemini-2.5-flash"
GEMINI_2_0_FLASH = "google/gemini-2.0-flash-001"
GEMINI_3_1_FLASH_LITE_PREVIEW = "google/gemini-3.1-flash-lite-preview"
GEMINI_3_8_FLASH = "google/gemini-3.8-flash"
GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite"
GEMINI_2_0_FLASH_LITE = "google/gemini-2.0-flash-lite-001"
MISTRAL_LARGE_3 = "mistralai/mistral-large-2512"
Expand Down
Loading