Skip to content

feat: add Mistral hosted API support - #889

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

Astro-Han merged 4 commits into
mainfrom
feat/mistral-provider-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add Mistral as a first-class hosted API provider across the shared registry, credentials, Desktop, CLI, storage, headless, Harbor, and runtime paths.
  • Discover account models from the official Mistral endpoint with deterministic snapshot fallback, including both documented list response shapes.
  • Vendor the byte-exact Mistral SVG and render it through the existing shared provider asset-mask seam.

Why

Issue #860 requires hosted-provider support without duplicating provider ownership or assuming protocol compatibility. Mistral needs its stable provider ID, official endpoint and credential namespace, exact tool-capable model IDs, and its documented tool-call roundtrip represented by existing registry/runtime seams.

Refs #860.

Scope

This PR covers Mistral only. It does not add or modify other Phase 3 providers, shared mask/CSS/notice infrastructure, or Phase 7 behavior.

Verification

  • npm run typecheck — passed for all workspaces.
  • npm test — passed for scripts, core, storage, runtime, headless, CLI, UI, and Desktop.
  • npm run check:stale — passed after the required renderer build.
  • Desktop brand governance — 12/12 passed.
  • Mistral runtime conformance covers deterministic model discovery and a two-request tool-call loop without secrets.
  • Local Playwright was not rerun per delivery coordination; the deterministic single-worker provider E2E was added and CI E2E remains a merge hard gate.
  • No screenshot was captured because the visual change is an upstream byte-exact monochrome mark rendered by the existing mask seam; SHA-256 governance plus computed-style catalog/detail E2E cover the asset and dark-theme rendering contract.
  • Real-provider smoke was not run because no safe credential was supplied.

Impact

Users can configure Mistral from the provider catalog and use it through Desktop, CLI, storage, headless, Harbor, and runtime flows. No migration is required; existing connection data and providers are unchanged.

Reviewer notes

The vendored SVG comes from lobehub/lobe-icons, package @lobehub/[email protected], commit 32f4083f7a20b67ecdc7b29c0af031ada5a29c52, path packages/static-svg/icons/mistral.svg, MIT license, SHA-256 a06cfa54e7deff7f7544175b006b7f8a03fbc5624c44f7d553a44d07ea96e629.

The required independent reviewer reported no P0–P3 findings.

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 ebabb62 into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/mistral-provider-support branch July 13, 2026 16:03
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