Documentation
¶
Index ¶
Constants ¶
View Source
const (
ROUTE_COMPLETIONS = "https://api.openai.com/v1/chat/completions"
)
Variables ¶
This section is empty.
Functions ¶
func SaveConfigFile ¶
func SaveConfigFile(filePath string, cfg FileConfig) error
Types ¶
type CommandsService ¶
type CommandsService struct {
}
func NewCommandsService ¶
func NewCommandsService() *CommandsService
func (*CommandsService) Auth ¶
func (c *CommandsService) Auth() error
func (*CommandsService) Help ¶
func (c *CommandsService) Help() error
type ConfigService ¶
func NewConfigService ¶
func NewConfigService() (svc *ConfigService)
type FileConfig ¶
type OpenAiService ¶
type OpenAiService struct {
OpenAiRequest models.OpenAIRequest
// contains filtered or unexported fields
}
func NewOpenAiService ¶
func NewOpenAiService(cfg *ConfigService, aiModel AiModel, temperature float64) *OpenAiService
func (*OpenAiService) GetResponse ¶
func (s *OpenAiService) GetResponse(prompt string) (string, error)
type PromptService ¶
type PromptService struct {
// contains filtered or unexported fields
}
func NewPromptService ¶
func NewPromptService(cfg *ConfigService) *PromptService
func (*PromptService) GetChanges ¶
func (s *PromptService) GetChanges() (string, error)
Click to show internal directories.
Click to hide internal directories.