增加对Mistral AI API或Agent API支持
🥰 需求描述
Mistral AI也有API,甚至还有Agent API可以使用,目前市面上暂无第三方客户端支持该厂商的API使用。
🧐 解决方案
增加对Mistral AI API或Agent API支持。
📝 补充信息
No response
而且每个月有免费额度~
Bot detected the issue body's language is not English, translate it automatically.
And there is a free quota every month~
Implementation submitted in PR #6920.
This adds the requested Mistral AI chat-completions API support: independent endpoint/key settings, model selection, streaming replies, tool calls, deployment environment variables, and server-side authorization/model restrictions. Mistral Agents lifecycle management is outside this PR's scope.
The PR description includes real before/after settings screenshots, a streamed reply screenshot, a 13.8-second browser recording, and a reproducible HTTP/SSE fixture. The fixture uses synthetic credentials and a local upstream; no paid or live Mistral API was called.
The implementation-time local verification recorded in the PR is 37 suites / 201 tests passed, plus lint and a production build using the repository's Node 18 / Yarn 1.22.19 versions. These are historical local results, not new tests run during this CI investigation. The local lint setup and unverified live/native behavior are explicitly documented in the PR.
An English summary has been added with OpenAI Codex assistance because the
automatic translation of the original Chinese comment failed in
Issue Translator #18431.
That is a main-branch issue_comment workflow, not this PR's application-test
run. Its log reports HTTPError while translating; it does not expose enough
detail to establish the HTTP status or underlying service cause. The later
successful run #18432 skipped an already-English comment, so it does not prove
translation recovery. This edit does not change the workflow or claim that the
translation failure or the PR's separate external Vercel account block is fixed.
No additional review/approval request is being made.
Original Chinese delivery comment, preserved
已提交实现 PR:#6920。
这次实现的是需求中 Mistral AI Chat Completions API 的支持:独立的接口地址和密钥、Mistral 模型选择、流式聊天和工具调用,并接通部署环境变量及服务端鉴权/模型限制。Mistral Agents 生命周期管理不在本次范围。
PR 正文附有真实设置页面的前后截图、实际流式回复截图、约 14 秒操作录像,以及可复现的本地接口脚本。验证使用合成密钥和本地 HTTP/SSE 接口,没有调用付费 Mistral 服务;这一边界也已在截图和说明中标明。
本地完整回归为 37 个套件、201 项测试通过;按仓库的 Node 18 / Yarn 1.22.19 也完成了测试、lint 和生产构建,原有提交钩子正常通过。欢迎针对 PR 实现提出 review 意见。