openai

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 9 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 {
	APIKey  string
	BaseURL string
}

func NewClient

func NewClient(apiKey string, baseURL ...string) *Client

func (*Client) ClassifyImage

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

func (*Client) ClassifyText

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

Jump to

Keyboard shortcuts

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