Skip to content

Add mod: fix-mistral-reasoning-effort#119

Open
ChuckChambers wants to merge 1 commit intoeugr:mainfrom
ChuckChambers:fix-mistral-reasoning-effort
Open

Add mod: fix-mistral-reasoning-effort#119
ChuckChambers wants to merge 1 commit intoeugr:mainfrom
ChuckChambers:fix-mistral-reasoning-effort

Conversation

@ChuckChambers
Copy link
Copy Markdown

Problem

vLLM 0.17.2rc1 unconditionally passes reasoning_effort to apply_chat_template, but mistral_common <1.11 does not support it, causing a 400 error on every request when using Mistral models.

Fix

This mod guards the reasoning_effort kwarg with a null check and a try/except import of REASONING_EFFORTS from mistral_common, skipping gracefully if the installed version does not support it.

Uses patch command as recommended — safe to apply on any vLLM version, skips automatically if already applied or not applicable.

Usage

./launch-cluster.sh --apply-mod mods/fix-mistral-reasoning-effort ...

Workaround until PR vllm-project/vllm#37081 lands in a vLLM release.

vLLM 0.17.2rc1 unconditionally passes reasoning_effort to
apply_chat_template, but mistral_common <1.11 doesn't support it,
causing a 400 on every request.

This mod guards the reasoning_effort kwarg with a null check and
a try/except import of REASONING_EFFORTS from mistral_common,
skipping gracefully if the installed version doesn't support it.

Workaround until PR #37081 lands in a vLLM release.

Usage:
  ./launch-cluster.sh --apply-mod mods/fix-mistral-reasoning-effort ...
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.

1 participant