Router.Moderations
Create a Moderation
Create moderationfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.router.moderations.create(input=[], model="Fiesta")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.router.moderations.create({
input: [],
model: "Fiesta",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"input": Union[str, List[str]], # required
"model": str, # required
}
{
input: string | string[]; // required
model: string; // required
}
Show Response
Show Response
{
"id": str,
"model": str,
"results": Union[Results1, Results2],
}
{
id: string;
model: string;
results: string;
}