Skip to content

[Bug]: Invalid argument for parameter maxOutputTokens: maxOutputTokens must be >= 1 #3247

@Hoshino-Yumetsuki

Description

@Hoshino-Yumetsuki

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Description

The expected behavior is that the request should succeed even without the limit parameter:

"limit": {
"context": 200000,
"output": 32000
}

This functionality worked correctly in all versions prior to 1.4.0.

Plugins

oh-my-opencode

OpenCode version

1.4.0

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions