Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AI ¶
type AI struct { Client *genai.Client Gemini *genai.GenerativeModel Token string // contains filtered or unexported fields }
func (*AI) GenerateImageFromText ¶
GenerateImageFromText generates an image from a given text prompt. The prompt parameter provides the description of the image to generate. It returns the generated image as an image.Image object, and any error encountered.
func (*AI) SimpleQuery ¶
SimpleQuery to the AI model
Click to show internal directories.
Click to hide internal directories.