Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

mistralai: expose reasoning_effort on the LLM

オープン 初心者向け
#8,283 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@muzman123 がすでに取り組んでいます。

2026年10月30日 から。

  • #8285 @muzman123 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
ai, backend

調査の方向性

まず、Mistralプラグインの mistralai.LLM の実装と completion_args を構築するコードを読み、次にSDKの CompletionArgs 型でサポートされている値を確認してください。現在の動作を維持するデフォルト値を持つキーワード引数を追加し、それを completion_args に渡してください。呼び出し側がサポートされている推論の強度を設定でき、既存の呼び出しが従来の動作を維持すれば完了です。issueではテストの提供を申し出ていますが、テストファイルは指定していません。

索引モデルが issue の本文から書いたものです。

説明

enhancement
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:

  1. Reasoning can't be tuned for voice. Mistral's docs list mistral-small-2603, mistral-medium-3-5 and mistral-large-4-0 as supporting reasoning_effort (all three are in ChatModels), and describe reasoning as using "extra compute time to generate more tokens". The OpenAI plugin exposes reasoning_effort and defaults reasoning models to "none" or "minimal"; Mistral has no equivalent.
  2. The recommended replacement isn't reachable. Mistral deprecated magistral-small-latest and magistral-medium-latest and recommends reasoning_effort on mistral-small-latest or mistral-medium-3-5 instead.

One constraint: in the released mistralai SDK (3.5.0, the plugin's floor, through 3.6.0), CompletionArgs.reasoning_effort is typed as Literal["none", "high"], so only those two values can be sent today, even though the docs list low/medium/high for mistral-large-4-0.

Proposal

A single keyword argument on mistralai.LLM with a default that keeps today's behaviour

Workarounds / Alternatives
  • extra_kwargs on chat(): needs a custom llm_node and gets overwritten when temperature or other option is set
  • Magistral models: deprecated by Mistral.
  • Patching the plugin: has to be redone on every upgrade.
Additional Context
主要言語
Python
スター
14.6k
フォーク
3.9k
平均マージ
2日 6時間
マージ済み PR(30日)
227

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

livekit/agents のほかの issue

livekit/agents の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。