chore: support default model in moderations API

# What does this PR do?


## Test Plan
This commit is contained in:
Eric Huang 2025-10-22 14:52:00 -07:00
parent 7b90e0e9c8
commit 3381874de9
23 changed files with 211 additions and 36 deletions

View file

@ -8185,13 +8185,12 @@
},
"model": {
"type": "string",
"description": "The content moderation model you would like to use."
"description": "(Optional) The content moderation model you would like to use."
}
},
"additionalProperties": false,
"required": [
"input",
"model"
"input"
],
"title": "RunModerationRequest"
},

View file

@ -6104,11 +6104,10 @@ components:
model:
type: string
description: >-
The content moderation model you would like to use.
(Optional) The content moderation model you would like to use.
additionalProperties: false
required:
- input
- model
title: RunModerationRequest
ModerationObject:
type: object

View file

@ -6919,13 +6919,12 @@
},
"model": {
"type": "string",
"description": "The content moderation model you would like to use."
"description": "(Optional) The content moderation model you would like to use."
}
},
"additionalProperties": false,
"required": [
"input",
"model"
"input"
],
"title": "RunModerationRequest"
},

View file

@ -5230,11 +5230,10 @@ components:
model:
type: string
description: >-
The content moderation model you would like to use.
(Optional) The content moderation model you would like to use.
additionalProperties: false
required:
- input
- model
title: RunModerationRequest
ModerationObject:
type: object

View file

@ -8591,13 +8591,12 @@
},
"model": {
"type": "string",
"description": "The content moderation model you would like to use."
"description": "(Optional) The content moderation model you would like to use."
}
},
"additionalProperties": false,
"required": [
"input",
"model"
"input"
],
"title": "RunModerationRequest"
},

View file

@ -6443,11 +6443,10 @@ components:
model:
type: string
description: >-
The content moderation model you would like to use.
(Optional) The content moderation model you would like to use.
additionalProperties: false
required:
- input
- model
title: RunModerationRequest
ModerationObject:
type: object