<think> tags shown in agent output instead of being filtered

Aperta
#24 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Ambito
ai

Direzione di ricerca

Start by reproducing the visible thinking tags with MiniMax-M2.7 through Zed or Claude Code, including AI-generated commit messages, and review issue #12 for related context. Done means internal thinking content is no longer exposed to users or included in generated commit messages, with the chosen API or parsing behavior documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

When using MiniMax-M2.7 through agent integrations (Zed, Claude Code, etc.), the thinking tags are being displayed as visible text in the chat instead of being processed internally and filtered out.

Also affects AI commit messages

This issue also occurs when MiniMax-M2.7 is used to generate commits via AI. The thinking tags appear in the commit message output, showing the model internal reasoning process as visible text.

Expected behavior

The thinking tags should be processed internally by the agent framework and not shown to the end user. Only the actual response content should be visible.

Impact

  1. Poor user experience - users see internal reasoning mixed with responses
  2. Context bloat - thinking tokens accumulate in conversation history
  3. Makes the model appear broken or misconfigured
  4. Commit messages contain unwanted thinking content

Root cause

The thinking tags are part of the model output format but agent integrations are treating the thinking content as regular text output rather than internal processing that should be stripped.

Suggested solutions

  1. API parameter to control whether thinking tags are included in output
  2. Default behavior change to NOT include thinking content in API output streams
  3. Better documentation on how agents should properly parse and filter thinking content

References

  • Issue #12 also reports verbose thinking causing context issues with Claude Code
Lingua principale
Nessun dato sulla lingua
Stelle
366
Fork
65
Merge medio
15m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MiniMax-AI/MiniMax-M2.7

Tutte le issue di MiniMax-AI/MiniMax-M2.7

Issue simili

Altre issue su AI Infra & Agents

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.