API Error: 400 invalid params - chat content has invalid message role: system (2013) in Claude Code CLI v2.1.156 using Minimax Anthropic API

Aperta
#43 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Ambito
api, cli

Direzione di ricerca

Reproduce the failure using Claude Code CLI v2.1.156, the https://api.minimax.io/anthropic endpoint, and the Windows environment described here. Compare the request behavior around the system role and determine whether the incompatibility is in the CLI message format or the Minimax Anthropic-compatible API; done means requests no longer return the reported 400 error.

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

Descrizione

Description

I am currently using Claude Code CLI v2.1.156 with the following Anthropic-compatible API endpoint:

https://api.minimax.io/anthropic

Because I am not located in China, I use this endpoint instead of the default one.

Starting today, every chat request fails with the following error:

API Error: 400 invalid params, chat content has invalid message role: system (2013)

Steps to Reproduce

  1. Open Claude Code CLI v2.1.156
  2. Configure API endpoint to:
    https://api.minimax.io/anthropic
  3. Start a normal chat session
  4. Send any prompt
  5. Error appears immediately

Expected Behavior

Chat requests should work normally with Anthropic-compatible APIs.

Actual Behavior

All requests fail with:

API Error: 400 invalid params, chat content has invalid message role: system (2013)

Environment

  • Claude Code CLI version: v2.1.156
  • API provider: Minimax
  • API endpoint: https://api.minimax.io/anthropic
  • OS: Windows
  • Issue started occurring: Today

Please help check whether:

  • Claude Code CLI recently changed the message format
  • system role handling became incompatible
  • or Minimax Anthropic compatibility has changed recently
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 Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.