mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-04 21:42:57 +02:00
21 lines
336 B
Go
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
|
|
}
|
|
}
|