Follows Wangzehong111's commit (from #480), with the review's change: the plugin sends x-provider-routing-source: registry_default on every request, and droid 0.251.0 sends that only with apiProviders[0]. 1017's apiProviders is ["fireworks","baseten","databricks"], so Baseten with registry_default is a header pair droid never sends. 1017 now goes to Fireworks like every other model's first upstream; the droid test checks both headers, the README says so, and the fixture header names the binary the bytes were checked against. Reported on Discord by sweanng: the model list had DeepSeek V4.1 Flash but no 1017. Checked: droid 0.251.0 (LATEST) darwin-arm64 from downloads.factory.ai, sha256 d3c0b87f..., has the 1017 entry byte for byte as in testdata, with the c(o,t) helper and I()'s registry_default rule. Closes #480. Co-authored-by: Wangzehong111 <112800852+Wangzehong111@users.noreply.github.com>
7 lines
1.4 KiB
Plaintext
7 lines
1.4 KiB
Plaintext
// Excerpts, byte for byte, of droid 0.251.0: the total-context helper and
|
|
// the 1017 entry. Checked against the darwin-arm64 CLI from
|
|
// downloads.factory.ai/factory-cli/releases/0.251.0/darwin/arm64/droid,
|
|
// SHA-256 d3c0b87ff7cf942ee40a954ffa00204125d29241fe5e4ef458643622b74c25f9.
|
|
function c(o,t){return R({maxInputTokens:o-t,maxOutputTokens:t})}
|
|
"deepseek-v4.1-flash-1017":{id:"deepseek-v4.1-flash-1017",name:"DeepSeek V4.1 Flash 1017",shortName:"DeepSeek V4.1 Flash 1017",provider:"factory",apiModelProvider:"generic-chat-completion-api",featureFlag:w.DeepSeekV41Flash1017,apiProviders:["fireworks","baseten","databricks"],routingConfig:m.DEEPSEEK_V4_1_FLASH_1017,apiProviderConfig:{fireworks:{...Z,modelId:"accounts/fireworks/models/deepseek-v4p1-flash-1017"},baseten:{...Z,modelId:"deepseek-ai/DeepSeek-V4.1-Flash-1017",chatCompletions:{...Z.chatCompletions,thinkingMode:"reasoning-effort"}},databricks:{...bt,modelId:"system.ai.deepseek-v4-1-flash-1017"}},reasoningEffort:{supported:["off","low","high","max"],default:"high"},chatCompletionRequest:Pe(),tier:"standard",billingPool:"core",images:!0,pdf:!1,contextLimits:c(1040000,131072),disabledForPilots:!1,cost:{tokenMultiplier:0.12,cacheReadTokenMultiplier:0.024,outputTokenMultiplier:4},usesUSBasedInference:!0,matchPatterns:[/deepseek[^a-z0-9]*v?4(?:[^a-z0-9]*1|p1)[^a-z0-9]*flash[^a-z0-9]*1017/i],newUntil:new Date("2026-10-22T00:00:00Z")}
|