ai
ai copied to clipboard
Bug: Bad input error when using @cf/openai/gpt-oss-120b
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.