mistralai: expose reasoning_effort on the LLM
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
Research direction
Start by reading the Mistral plugin's mistralai.LLM implementation and the code that builds completion_args, then check the SDK's CompletionArgs type for supported values. Add a keyword argument with a default that preserves current behavior and pass it through to completion_args; done means callers can set the supported reasoning effort and existing calls retain their behavior. The issue offers to provide tests but does not name a test file.
Written by the indexing model from the issue text.
Description
Feature Type
Would make my life easier
Feature Description
mistralai.LLM sends no reasoning_effort, and there is no way to set it. The plugin uses the Conversations API which accepts reasoning_effort inside completion_args, but the plugin only builds completion_args from max_tokens, temperature, top_p, presence_penalty, frequency_penalty, random_seed and tool_choice.
Two consequences:
- Reasoning can't be tuned for voice. Mistral's docs list
mistral-small-2603,mistral-medium-3-5andmistral-large-4-0as supportingreasoning_effort(all three are inChatModels), and describe reasoning as using "extra compute time to generate more tokens". The OpenAI plugin exposesreasoning_effortand defaults reasoning models to"none"or"minimal"; Mistral has no equivalent. - The recommended replacement isn't reachable. Mistral deprecated
magistral-small-latestandmagistral-medium-latestand recommendsreasoning_effortonmistral-small-latestormistral-medium-3-5instead.
Proposal
A single keyword argument on mistralai.LLM with a default that keeps today's behaviour
Workarounds / Alternatives
extra_kwargsonchat(): needs a customllm_nodeand gets overwritten whentemperatureor other option is set- Magistral models: deprecated by Mistral.
- Patching the plugin: has to be redone on every upgrade.
Additional Context
- Docs: https://docs.mistral.ai/studio/conversations/reasoning
- Happy to open a PR with tests.
- Dominant language
- Python
- Stars
- 14.6k
- Forks
- 3.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 232
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from livekit/agents
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
ci: unit tests pin Python 3.12 while the package advertises 3.14 supportPossibly taken @huong8373tt-beep claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
livekit/agents#8231 · 3 comments ·
Maintainers usually reply within 1 day
-
Assistant markup is stripped from chat history when expressive mode is offPossibly taken @ShivamSharma43 claimed this 23 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
livekit/agents#7647 · 1 comment ·
Maintainers usually reply within 1 day
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hostsMay be free again @AbarnaaSree claimed this 62 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
livekit/agents#7022 · 1 comment ·
Maintainers usually reply within 1 day
-
DataStreamAudioReceiver retains registrations after close and shares clear-buffer routing across roomsPossibly taken @Zheng-Changfu claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#147104 ·
Maintainers usually reply within 1 day
-
[oblt-aw][autodoc] Document new required `shared-org-key` input for `obs-aw-dependency-review`Possibly taken @github-actions claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bot-triaged module: inductor oncall: pt2 topic: fuzzer triaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
getchaintips leaves out the active tip once a header is staged on it, where Core always lists itOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
btclib-org/btclib-node#2158 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
patrick-hudson/put.gd-desktop#979 · 1 comment ·
Maintainers usually reply within 1 day