Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultOpenAIModel = "gpt-3.5-turbo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIClient ¶
type AIClient interface {
// Suggest receives a prompt and returns a suggestion or an error
Suggest(prompt string) (string, error)
// GetProvider returns the name of the AI provider
GetProvider() string
// GetModel returns the model being used
GetModel() string
}
AIClient defines the interface that all AI providers must implement
func NewAIClient ¶
NewAIClient creates a new AI client based on the provider
type ClaudeClient ¶
type ClaudeClient struct {
// contains filtered or unexported fields
}
func (*ClaudeClient) GetModel ¶
func (c *ClaudeClient) GetModel() string
func (*ClaudeClient) GetProvider ¶
func (c *ClaudeClient) GetProvider() string
type OpenAIClient ¶
type OpenAIClient struct {
// contains filtered or unexported fields
}
func (*OpenAIClient) GetModel ¶
func (c *OpenAIClient) GetModel() string
func (*OpenAIClient) GetProvider ¶
func (c *OpenAIClient) GetProvider() string
Click to show internal directories.
Click to hide internal directories.