Skip to content

Moderation on AI Output #24

@WVAviator

Description

@WVAviator

Sometimes the AI outputs text that, when fed back in to generate other parts of the game, triggers moderation errors from OpenAI.

Moderation object and request client need added to the OpenAI lib.

Moderation should be called inside the Chat Completion Factory after generating text on the AI's output, throwing an error if the output fails moderation, forcing the factory to reattempt the generation up to the max attempts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions