WithModel is a function that returns an Option, which sets the model field of the config struct.
(val string)
| 54 | |
| 55 | // WithModel is a function that returns an Option, which sets the model field of the config struct. |
| 56 | func WithModel(val string) Option { |
| 57 | return optionFunc(func(c *config) { |
| 58 | c.model = val |
| 59 | }) |
| 60 | } |
| 61 | |
| 62 | // WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct. |
| 63 | func WithProxyURL(val string) Option { |