go-ollama: first release v0.1.0

This commit is contained in:
2026-02-23 11:40:05 +01:00
parent ad8e4025b2
commit 69172f6d5f
15 changed files with 787 additions and 0 deletions

14
ollama.go Normal file
View 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
}