You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Auto] session_failure: The request was malformed and could not be processed. litellm.BadRequestError: O #765
The request was malformed and could not be processed.
litellm.BadRequestError: OpenAIException - System message must be at the beginning.. Received Model Group=qwen3.8-flash-next-tp1
Available Model Group Fallbacks=None
Stack Trace
ApiError: The request was malformed and could not be processed.
litellm.BadRequestError: OpenAIException - System message must be at the beginning.. Received Model Group=qwen3.8-flash-next-tp1
Available Model Group Fallbacks=None
at buildFriendlyError (/$bunfs/root/autohand-macos-arm64:87190:26)
at async makeRequest (/$bunfs/root/autohand-macos-arm64:87109:42)
at async complete (/$bunfs/root/autohand-macos-arm64:87042:48)
at processTicksAndRejections (native:7:39)
Reported from CLI 0.9.8. The request failed because the CLI sent system notes in the middle of the conversation, which this OpenAI-compatible endpoint rejects ("System message must be at the beginning").
This was fixed in 0.9.10: custom providers go through normalizePromptRoles (src/providers/messagePayload.ts), which merges leading system messages into one and sends later system notes as user context. Upgrading to 0.9.10 or later resolves it.
Activity
igorcosta commentedon Nov 19, 2026
Reported from CLI 0.9.8. The request failed because the CLI sent system notes in the middle of the conversation, which this OpenAI-compatible endpoint rejects ("System message must be at the beginning").
This was fixed in 0.9.10: custom providers go through
normalizePromptRoles(src/providers/messagePayload.ts), which merges leading system messages into one and sends later system notes as user context. Upgrading to 0.9.10 or later resolves it.