Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAiModels ¶
func GetAnthropicModels ¶
func GetGptModels ¶
Types ¶
type AnthropicDriver ¶
type AnthropicDriver struct {
// contains filtered or unexported fields
}
func NewAnthropicDriver ¶
func NewAnthropicDriver(apiKey string) *AnthropicDriver
func (*AnthropicDriver) GetResponse ¶
func (d *AnthropicDriver) GetResponse(prompt string, model string) (string, error)
func (*AnthropicDriver) SetSystemMessage ¶
func (d *AnthropicDriver) SetSystemMessage(message string)
type OpenAIDriver ¶
type OpenAIDriver struct {
// contains filtered or unexported fields
}
func NewOpenAIDriver ¶
func NewOpenAIDriver(apiKey string) *OpenAIDriver
func (*OpenAIDriver) GetResponse ¶
func (d *OpenAIDriver) GetResponse(prompt string, model string) (string, error)
func (*OpenAIDriver) SetSystemMessage ¶
func (d *OpenAIDriver) SetSystemMessage(message string)
Click to show internal directories.
Click to hide internal directories.