general

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenAIService

func NewOpenAIService(openaiAPI openaiAPI.API) openaiService.Service

NewOpenAIService creates OpenAIService object.

Types

type OpenAIService

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

OpenAIService type is implementation of service for OpenAI.

func (*OpenAIService) GenerateConfig

func (s *OpenAIService) GenerateConfig(
	ctx context.Context, format, message string) (string, error)

GenerateConfig generates generation config based on its description.

func (*OpenAIService) Ping

func (s *OpenAIService) Ping(ctx context.Context) error

func (*OpenAIService) RegenerateConfig

func (s *OpenAIService) RegenerateConfig(
	ctx context.Context, format, oldConfig, errMessage string, contextMessages ...string) (string, error)

Jump to

Keyboard shortcuts

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