factory 0.1.47: add Gemini 4 Hydrogen (#1073)
Droid 1.10.0 adds gemini-4-hydrogen on Factory's Google route, behind its Gemini4Hydrogen flag: 1M context, 65536 output, low/medium/high, a 0.6x multiplier and no promotion. Without it a request to factory/gemini-4-hydrogen went to the Anthropic route and was refused. It sits after the first 24 like Carbon, so GLM-5.3-Flash stays in them (#119); grouped by company it sorts first among Gemini, by id as the others do. Checked: Droid 1.10.0 darwin/arm64 downloaded on mote, SHA-256 2b6b467e…6bf7f as the issue says. The testdata line is grepped from that binary, and matches the issue's text byte for byte. Run: bun test packages/factory on WSL with a temp HOME, 0 fail; bun scripts/check.mjs factory ok. Hydrogen is index 49 of 60. Broken by hand: Hydrogen at 0.5x turns 3 rate tests red. Not tried: a real request (no Factory account with the flag here). Reported-by: hitbear518
This commit is contained in:
@@ -119,6 +119,9 @@ const MODELS = [
|
|||||||
["claude-fable-5.2", "Fable 5.2", ANTHROPIC, "anthropic", 867000, 128000, E5, true, 3.2],
|
["claude-fable-5.2", "Fable 5.2", ANTHROPIC, "anthropic", 867000, 128000, E5, true, 3.2],
|
||||||
// Droid 1.7.1 adds Carbon behind Factory's Gemini4Carbon feature flag.
|
// Droid 1.7.1 adds Carbon behind Factory's Gemini4Carbon feature flag.
|
||||||
["gemini-4-carbon", "Gemini 4 Carbon", GEMINI, "google", 1000000, 65536, ["low", "medium", "high"], true, 1.6],
|
["gemini-4-carbon", "Gemini 4 Carbon", GEMINI, "google", 1000000, 65536, ["low", "medium", "high"], true, 1.6],
|
||||||
|
// Droid 1.10.0 adds Hydrogen, the head of the Flash line, behind Factory's
|
||||||
|
// Gemini4Hydrogen feature flag (#1073).
|
||||||
|
["gemini-4-hydrogen", "Gemini 4 Hydrogen", GEMINI, "google", 1000000, 65536, ["low", "medium", "high"], true, 0.6],
|
||||||
// The Fast Mode models come last: magpie shows a provider with no models
|
// The Fast Mode models come last: magpie shows a provider with no models
|
||||||
// picked only the first 24 of its list, and placed beside their base
|
// picked only the first 24 of its list, and placed beside their base
|
||||||
// models in 0.1.27 they pushed GPT-5.3-Codex, Grok 4.7, Grok 4.6, GLM-5.3
|
// models in 0.1.27 they pushed GPT-5.3-Codex, Grok 4.7, Grok 4.6, GLM-5.3
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ test("company ordering is opt-in, preserves metadata, and is read on each model
|
|||||||
before("gpt-6.1-sol", "gpt-6-sol")
|
before("gpt-6.1-sol", "gpt-6-sol")
|
||||||
before("gpt-6-luna", "gpt-5.6-sol")
|
before("gpt-6-luna", "gpt-5.6-sol")
|
||||||
before("gpt-5.3-codex-fast", "gemini-4-carbon")
|
before("gpt-5.3-codex-fast", "gemini-4-carbon")
|
||||||
|
before("gemini-4-hydrogen", "gemini-4-carbon")
|
||||||
before("gemini-4-carbon", "gemini-4-argon")
|
before("gemini-4-carbon", "gemini-4-argon")
|
||||||
before("gemini-3.8-flash", "gemini-3.1-pro-preview")
|
before("gemini-3.8-flash", "gemini-3.1-pro-preview")
|
||||||
before("glm-5.2-fast", "kimi-k3.1-pro")
|
before("glm-5.2-fast", "kimi-k3.1-pro")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@magpie-community/opencode-factory-auth",
|
"name": "@magpie-community/opencode-factory-auth",
|
||||||
"version": "0.1.46",
|
"version": "0.1.47",
|
||||||
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./opencode.mjs",
|
"main": "./opencode.mjs",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { expect, test } from "bun:test"
|
|||||||
import { readFileSync } from "node:fs"
|
import { readFileSync } from "node:fs"
|
||||||
import { FactoryAuthPlugin, _internal } from "./index.mjs"
|
import { FactoryAuthPlugin, _internal } from "./index.mjs"
|
||||||
|
|
||||||
const DROID = ["droid-0.241.1-costs.txt", "droid-0.251.0-deepseek-1017.txt", "droid-1.7.0-models.txt", "droid-1.7.1-carbon.txt"]
|
const DROID = ["droid-0.241.1-costs.txt", "droid-0.251.0-deepseek-1017.txt", "droid-1.7.0-models.txt", "droid-1.7.1-carbon.txt", "droid-1.10.0-hydrogen.txt"]
|
||||||
.map((name) => readFileSync(new URL(`./testdata/${name}`, import.meta.url), "utf8")).join("\n")
|
.map((name) => readFileSync(new URL(`./testdata/${name}`, import.meta.url), "utf8")).join("\n")
|
||||||
|
|
||||||
// cost is a model's cost text, as its entry keeps it (Inkling's key unquoted).
|
// cost is a model's cost text, as its entry keeps it (Inkling's key unquoted).
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
// Registry entry from https://downloads.factory.ai/factory-cli/releases/1.10.0/darwin/arm64/droid
|
||||||
|
// SHA-256 2b6b467ee5a8f454704d599f67b6e3b53c3224e5a6057f414f877f748f6bbf7f
|
||||||
|
"gemini-4-hydrogen":{id:"gemini-4-hydrogen",name:"Gemini 4 Hydrogen",shortName:"Gemini 4 Hydrogen",provider:"google",systemPromptReminders:v,apiProviders:["google"],apiProviderConfig:{google:{pricing:{source:"pending-official-pricing-docs",rates:{input:"0.6",output:"3",cacheRead:"0.03"},regionalMultipliers:{eu:void 0,us:void 0,in:void 0}}}},regionOverrides:{eu:{apiProviders:["google"]}},reasoningEffort:{supported:["low","medium","high"],default:"high"},tier:"standard",featureFlag:L.Gemini4Hydrogen,pdf:!0,contextLimits:k(1e6,65536),thinking:R(),apiRequest:C({supportsMedium:!0}),disabledForPilots:!1,cost:{tokenMultiplier:0.6,outputTokenMultiplier:5,cacheReadTokenMultiplier:0.05},matchPatterns:[/gemini[^a-z0-9]*4[^a-z0-9]*hydrogen/i],newUntil:new Date("2026-11-17T00:00:00Z")}
|
||||||
Reference in New Issue
Block a user