Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) FallbackCount() int64
- func (c *Client) Generate(ctx context.Context, prompt string) (string, error)
- func (c *Client) Healthy(ctx context.Context) bool
- func (c *Client) Model() string
- func (c *Client) Provider() string
- func (c *Client) Redact(ctx context.Context, content string) string
- type Config
- type Manager
- type RedactClient
Constants ¶
View Source
const ( ProviderOllama = "ollama" ProviderMLX = "mlx" // PlaceholderRedacted is the literal substituted by aggressive (non-LLM) redaction. // MLX uses the same placeholder until the real cgo binding to mlx-c is wired up. PlaceholderRedacted = "[VALUE_REDACTED]" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FallbackCount ¶
type Config ¶
type Config struct {
Provider string `yaml:"provider"`
Model string `yaml:"model"`
URL string `yaml:"url"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) FallbackCount ¶
Click to show internal directories.
Click to hide internal directories.