Skip to content

feat(llm): add Mistral provider#46

Open
Esashiero wants to merge 1 commit intocalesthio:masterfrom
Esashiero:feat/mistral-provider
Open

feat(llm): add Mistral provider#46
Esashiero wants to merge 1 commit intocalesthio:masterfrom
Esashiero:feat/mistral-provider

Conversation

@Esashiero
Copy link

Summary

  • Add MistralProvider (lib/llm/mistral.mjs) using Mistral's OpenAI-compatible Chat Completions API
  • Enforce JSON output via response_format: { type: "json_object" } for clean parsing
  • Register in createLLMProvider() factory and update README / .env.example
  • Default model: mistral-small-latest (free tier compatible)

Motivation

Provide a 7th LLM option so users with Mistral API keys (including free tier) can power trade ideas and alert evaluation.

- Add MistralProvider (lib/llm/mistral.mjs) using OpenAI-compatible
  Chat Completions API with response_format: json_object
- Register in createLLMProvider() factory (lib/llm/index.mjs)
- Update README and .env.example with new provider
- Add @mistralai/mistralai as dev dependency for testing
@Esashiero Esashiero requested a review from calesthio as a code owner March 19, 2026 00:47
@calesthio
Copy link
Owner

I haven't been able to get to this yet because work has been busy, but I definitely plan to review it over the weekend.

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.

2 participants