Skip to content

feat(llm): add Mistral AI and Together AI OpenAI-compatible support#33456

Open
pozii wants to merge 2 commits into
anomalyco:devfrom
pozii:mistral-together-provider
Open

feat(llm): add Mistral AI and Together AI OpenAI-compatible support#33456
pozii wants to merge 2 commits into
anomalyco:devfrom
pozii:mistral-together-provider

Conversation

@pozii

@pozii pozii commented Jun 22, 2026

Copy link
Copy Markdown

Add OpenAI-compatible support for @ai-sdk/mistral and @ai-sdk/togetherai in the V2 session runner.

Issue for this PR

Closes #33457

Type of change

  • New feature

What does this PR do?

Maps @ai-sdk/togetherai and @ai-sdk/mistral SDK packages to the OpenAI-compatible chat route in the V2 session runner, enabling these providers alongside the existing @ai-sdk/openai-compatible route. Also adds a Mistral AI provider facade to the LLM package.

How did you verify your code works?

  • bun typecheck passes in packages/llm and packages/core
  • bun test test/provider/openai-compatible-chat.test.ts (5/5 pass)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add OpenAI-compatible support for @ai-sdk/mistral and @ai-sdk/togetherai. Updates include:

- core/src/session/runner/model.ts: map aisdk packages @ai-sdk/togetherai and @ai-sdk/mistral to OpenAICompatibleChat.route, include auth handling, and add packages to the supported check.
- llm/src/providers/openai-compatible-profile.ts: add mistral profile with base URL.
- llm/src/providers/openai-compatible.ts: export mistral provider.
- llm/test/provider/openai-compatible-chat.test.ts: include mistral in providerFamilies.

This enables using Mistral and TogetherAI as OpenAI-compatible providers within the runtime and test suite.
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Add Mistral & TogetherAI OpenAI-compatible support doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@pozii pozii changed the title Add Mistral & TogetherAI OpenAI-compatible support feat(llm): add Mistral AI and Together AI OpenAI-compatible support Jun 22, 2026
@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

feat: add Mistral AI and Together AI V2 session runner support

1 participant