Skip to main content

Type Alias: GatewayInferenceInputCreateModerationRequest

type GatewayInferenceInputCreateModerationRequest = {
input: string | string[];
model?: string | "text-moderation-latest" | "text-moderation-stable";
};

Defined in: src/models/ai-gateway-inference.ts:6391

Portkey CreateModerationRequest; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputCreateModerationRequestSchema.parse(value);`

Properties​

input​

input: string | string[];

Defined in: src/models/ai-gateway-inference.ts:6392


model?​

optional model?: string | "text-moderation-latest" | "text-moderation-stable";

Defined in: src/models/ai-gateway-inference.ts:6393