openai

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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 Service

type Service interface {
	// Ping should send test request to OpenAI API to check service availability.
	Ping(ctx context.Context) error
	// GenerateConfig should generate models.GenerationConfig based on message passed from user.
	GenerateConfig(ctx context.Context, format, message string) (string, error)
	// RegenerateConfig should try regenerate configuration based on error.
	RegenerateConfig(ctx context.Context, format, oldConfig, errMessage string, contextMessages ...string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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