feat: add Mistral AI as a new provider#607
feat: add Mistral AI as a new provider#607welcoMattic wants to merge 2 commits intosteipete:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11d5459c03
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Please resolve conflicts |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 765ac34a3d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sources/CodexBarCore/Providers/Mistral/MistralUsageFetcher.swift
Outdated
Show resolved
Hide resolved
…in token-account catalog Address PR steipete#607 review: use fixed Gregorian/UTC calendar so non-Gregorian system calendars don't produce wrong month/year for the Mistral billing API, and add the missing .mistral entry to TokenAccountSupportCatalog so token- account overrides and manual cookie mode work correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@ratulsarna review comments has been addressed. |
Add support for tracking Mistral AI platform usage via the admin console billing API. This is a cookie-based provider (similar to OpenCode/Cursor) that fetches monthly token consumption and computes costs from the response pricing data.
Authentication uses Ory Kratos session cookies (ory_session_*) with CSRF token support. Supports both automatic browser cookie import (Chrome by default) and manual cookie header entry.
Closes #220