1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00
Files
go-micro/genai/options.go
2025-07-15 20:43:58 +01:00

21 lines
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
}
}