Skip to content

Invalid argument for parameter maxOutputTokens: maxOutputTokens must be >= 1 #21522

@Hoshino-Yumetsuki

Description

@Hoshino-Yumetsuki

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

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions