ai icon indicating copy to clipboard operation
ai copied to clipboard

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

Open chainmywallet opened this issue 2 months ago • 0 comments

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.

chainmywallet avatar Sep 29 '25 11:09 chainmywallet