go-ollama: first release v0.1.0
This commit is contained in:
14
ollama.go
Normal file
14
ollama.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package ollama
|
||||
|
||||
type Ollama struct {
|
||||
baseUrl string
|
||||
customHeaders map[string]string
|
||||
}
|
||||
|
||||
func New(baseUrl string) *Ollama {
|
||||
return &Ollama{baseUrl: baseUrl, customHeaders: make(map[string]string)}
|
||||
}
|
||||
|
||||
func (o *Ollama) SetCustomHeaders(customHeaders map[string]string) {
|
||||
o.customHeaders = customHeaders
|
||||
}
|
||||
Reference in New Issue
Block a user