moderation

package
v0.3.106 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Moderate(content string) (bool, string, error)
	Close()
}

type LlamaEngine

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

func NewLlamaEngine

func NewLlamaEngine(modelPath string, threads int) (*LlamaEngine, error)

func (*LlamaEngine) Close

func (e *LlamaEngine) Close()

func (*LlamaEngine) Moderate

func (e *LlamaEngine) Moderate(content string) (bool, string, error)

Directories

Path Synopsis
binding

Jump to

Keyboard shortcuts

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