Documentation
¶
Index ¶
Constants ¶
View Source
const ( ChatCompleteModelGemini1_5Flash = ChatCompleteModel("models/gemini-1.5-flash") ChatCompleteModelGemini2_0Flash = ChatCompleteModel("models/gemini-2.0-flash") ChatCompleteModelGemini1_5Pro = ChatCompleteModel("models/gemini-1.5-pro") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompleteModel ¶
type ChatCompleteModel string
type ChatCompleter ¶
func (*ChatCompleter) ChatComplete ¶
func (c *ChatCompleter) ChatComplete(ctx context.Context, req gai.ChatCompleteRequest) (gai.ChatCompleteResponse, error)
type Client ¶
func NewClient ¶
func NewClient(opts NewClientOptions) *Client
func (*Client) NewChatCompleter ¶
func (c *Client) NewChatCompleter(opts NewChatCompleterOptions) *ChatCompleter
type NewChatCompleterOptions ¶
type NewChatCompleterOptions struct {
Model ChatCompleteModel
}
type NewClientOptions ¶
Click to show internal directories.
Click to hide internal directories.