moderate

open suspend override fun moderate(prompt: Prompt, model: LLModel): ModerationResult(source)

Executes a moderation action on the given prompt using the specified language model. This method is not supported by the OpenRouter API and will always throw an UnsupportedOperationException.

Return

This method does not return a valid result as it always throws an exception.

Parameters

prompt

The Prompt object to be moderated, containing the messages and respective context.

model

The LLModel to be used for the moderation process.

Throws

Always thrown because moderation is not supported by the OpenRouter API.