Skip to content

feat(providers): add Fireworks AI support - #891

Merged
Astro-Han merged 2 commits into
mainfrom
feat/fireworks-provider-support
Jul 13, 2026
Merged

Astro-Han merged 2 commits into
mainfrom
feat/fireworks-provider-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add Fireworks AI as a first-class hosted provider across the shared registry, credentials, runtime discovery, Desktop, CLI, storage, and headless paths.
  • Preserve exact Fireworks account-qualified model IDs, use the public serverless catalog as a snapshot fallback, and cover a deterministic two-stage tool-call loop.
  • Vendor the upstream Fireworks SVG byte-for-byte through the existing provider asset-mask and third-party notice seams.

Why

Issue #860 tracks the remaining first-class provider integrations. Fireworks differs from a generic OpenAI-compatible endpoint in its account-scoped model discovery and exact model paths, so it needs an owned registry contract and discovery adapter rather than relying on protocol assumptions alone.

Refs #860

Scope

This PR adds Fireworks AI only. It does not add or change any other queued provider and does not implement Phase 7.

Verification

  • npm test — passed across all workspaces (including 11 script tests and 2,413 Desktop unit/static-contract tests)
  • npm run typecheck — passed across all workspaces
  • npm --workspace @maka/desktop run build:renderer — passed, including byte-identical third-party notice validation
  • Earlier local evidence: npm --workspace @maka/desktop run e2e -- e2e/providers.spec.ts --workers=1 passed 7/7 on the fake backend; it was not rerun after the final queue rebase because local E2E is delegated to CI
  • npm run check:stale — passed
  • git diff --check origin/main...HEAD — passed
  • Fireworks SVG SHA-256 — 9991ab2a8331096d3f408e07a5f2e1cb54c369143dd9fc7a97f6458478b33fe3

No static screenshot is included: the user-visible flow has deterministic Desktop E2E coverage, while the visual invariant is the byte-exact upstream SVG plus the shared ProviderAssetMask governance contract. CI E2E remains the merge gate. A real-provider smoke is intentionally non-blocking and was not run because no safe credential was provided.

Impact

Users can configure Fireworks AI with a provider-scoped API key, discover account and public serverless models without model-ID rewriting, and use supported tool-calling models consistently from Desktop, CLI, storage-backed, runtime, and headless surfaces. Existing persisted provider IDs and credentials are unchanged; no migration is required.

Reviewer notes

The Fireworks mark comes from lobehub/lobe-icons, package @lobehub/[email protected], commit e4302041fbb3039608d25f9f618bd462783b875e, path packages/static-svg/icons/fireworks.svg, under MIT. Runtime review should focus on the two-step account/public model discovery in model-fetcher.ts and preservation of account-qualified IDs.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable

@Astro-Han
Astro-Han merged commit 6650f99 into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/fireworks-provider-support branch July 13, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant