Skip to content

Bug: Bad input error when using @cf/openai/gpt-oss-120b #279

@chainmywallet

Description

@chainmywallet

Affected Model

@cf/openai/gpt-oss-120b

Error Message

{
  "errors": [
    {
      "message": "AiError: Bad input: Error: oneOf at '/' not met, 0 matches: required properties at '/' are 'input', required properties at '/' are 'requests'",
      "code": 5006
    }
  ],
  "success": false,
  "result": {},
  "messages": []
}

Description

When attempting to call the @cf/openai/gpt-oss-120b model through the Workers AI provider, the API returns a validation error indicating that neither input nor requests is being matched.
This happens even when following the official documentation for text generation.

It appears the request schema for this model may differ from other OpenAI-compatible endpoints or isn’t aligned with the documented usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions