1package provider
2
3type OllamaFactory struct {
4 name string
5 endpoint string
6}
7
8func NewOllamaFactory(name string, endpoint string) *OllamaFactory {
9 return &OllamaFactory{
10 name: name,
11 endpoint: endpoint,
12 }
13}
14
15func (f *OllamaFactory) Name() string { return f.name }
16
17func (f *OllamaFactory) Create(model string, opts Options) Provider {
18 return NewOllamaWithTemp(f.name, f.endpoint, model, opts.Temperature)
19}