项目文件夹

文件
2025-07-15 20:43:58 +01:00

21 行
336 B
Go

package genai
// Option sets options for a GenAI provider.
func WithAPIKey(key string) Option {
return func(o *Options) {
o.APIKey = key
}
}
func WithEndpoint(endpoint string) Option {
return func(o *Options) {
o.Endpoint = endpoint
}
}
func WithModel(model string) Option {
return func(o *Options) {
o.Model = model
}
}