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)
}
Click to show internal directories.
Click to hide internal directories.