Documentation
¶
Index ¶
Constants ¶
View Source
const ( GeminiModel = "gemini-1.5-flash" AIPrompt = `` /* 175-byte string literal not displayed */ GeminiProvider = "gemini" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenAIClient ¶
type GenAIClient interface {
// Close clean up and close the client.
Close() error
// GenerativeModel build the generative mode.
GenerativeModel(name string) GenAIGenerativeModel
}
GenAIClient defines the interface for the GenAI client.
func NewGenAIClient ¶
func NewGenAIClient(ctx context.Context, aiAPIKey, endpoint string) (GenAIClient, error)
NewGenAIClient creates a new gemini API client.
Click to show internal directories.
Click to hide internal directories.