provider: Fireworks Nexus preset, Nexus Auto on all three APIs (CNSA0422 on X)

Fireworks Nexus is an account and plan of its own (nexus.fireworks.ai,
Pro $8, Team, Enterprise) on the platform's /inference endpoints, which
speak chat completions, Responses and Anthropic messages
(docs.fireworks.ai/nexus/apis-and-sdks). Its keys are made at
nexus.fireworks.ai/settings/api-keys; a platform key carries no Nexus
plan.

The new preset fireworks-nexus (Add sheet tile "Nexus", the Fireworks
logo) sets all three endpoints and lists only `auto`: Pro and Team
refuse an open model named directly with a 403 (nexus/open-models), so
the platform's /models would offer models the plan refuses, and no list
is asked for. Enterprise users type their open models in, or set a
models URL. The editor offers x-anthropic-api-key and x-openai-api-key,
the headers Nexus Auto takes the user's own Claude and OpenAI keys in.
No usage API is documented (only the nexus.fireworks.ai/usage
dashboard), so there is no usage card. READMEs (en, zh) and
docs/reference.md list it.

Run (mote): go test -run 'TestFireworksNexus|Preset' ./internal/provider
ok at the pushed head; go test -count=1 -timeout 45m ./internal/provider
./internal/gui ./internal/catalog at the pre-rebase base: provider and
catalog ok, gui red only in the real-window AppKit tests killed at their
deadline under mote's load (TestCoveredWindowStaysUp,
TestClosingWindowMarksPageOutOfSight,
TestPanelHiddenByWailsMarksPageOutOfSight; #2645, #4924, #4125).
gofmt clean; go vet darwin, linux (nogui) and windows of internal/provider.
Broken by hand: without NoList TestFireworksNexusPreset goes red, the
fake platform list's accounts/fireworks/models/glm-5p3 listed and its
/models asked.
Not tried: a real Nexus key (none here), so neither `auto` on each API,
the header passthrough, nor what /models answers for a Nexus key; the
`auto` context window is left to the catalog (Nexus CLI writes 1M/131K).
GUI suite not run: presets reach the Add sheet as data and no GUI file
names a preset list.
This commit is contained in:
yetone
2026-11-10 22:26:38 +08:00
parent 7e1858515b
commit 065ca02c28
5 changed files with 74 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ line; agents connected to magpie lose it when it quits.
- **Providers with one field.** Pick a preset (Anthropic, OpenAI, Gemini,
Amazon Bedrock and its Mantle endpoint, DeepSeek, Kimi, GLM, MiniMax, StepFun, LongCat, Qwen, Baidu Qianfan, Tencent Cloud Token Plan,
Huawei Cloud MaaS, Volcengine Ark, Mistral, Groq, Nous Portal, xAI, OpenRouter, Together,
Fireworks, SiliconFlow, NVIDIA NIM, ModelScope, AiHubMix, PipeLLM, 302.AI, Ollama, LM Studio…),
Fireworks, Fireworks Nexus, SiliconFlow, NVIDIA NIM, ModelScope, AiHubMix, PipeLLM, 302.AI, Ollama, LM Studio…),
paste a key, done. Custom vendors need a name and a base URL. magpie never
reads keys from your shell environment.
- **Real model lists, nothing compiled in.** With a key in hand magpie asks