memory

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(flagged bool) *Client

NewClient creates a new memory-based moderation client with a predetermined response.

func (*Client) ClassifyImage

func (c *Client) ClassifyImage(url string) (*moderation.ModerationResult, error)

func (*Client) ClassifyText

func (c *Client) ClassifyText(text string) (*moderation.ModerationResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL