Skip to content

[Auto] session_failure: The request was malformed and could not be processed. max_tokens must be an inte #486

Description

@igorcosta

Auto-Reported Error

Field Value
Error Type session_failure
CLI Version 0.8.2
Model fantail
Provider autohandai
Platform darwin 24.5.0
Session ID 4f522681-960e-4f92-8a21-ed3689c40fb4-1786351447641
Report ID AjMg6mcayl96HIMnnTgml

Error Message

The request was malformed and could not be processed.
max_tokens must be an integer between 1 and 4096 for model `fantail`.

Stack Trace

ApiError: The request was malformed and could not be processed.
max_tokens must be an integer between 1 and 4096 for model `fantail`.
    at buildFriendlyError (~/Documents/autohand/cli-3/src/providers/LLMGatewayClient.ts:512:18)
    at async makeRequest (~/Documents/autohand/cli-3/src/providers/LLMGatewayClient.ts:359:24)
    at async complete (~/Documents/autohand/cli-3/src/providers/LLMGatewayClient.ts:245:37)
    at processTicksAndRejections (native:7:39)

Session Context

  • Conversation length: 3 messages
  • Context usage: 100%
  • Last tools used: N/A
  • Retry attempt: 0 / 5

Additional Context

{
  "retryAttempt": 0,
  "maxRetries": 5
}

Auto-reported by Autohand CLI v0.8.2 | Report ID: AjMg6mcayl96HIMnnTgml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions