mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 02:16:36 +02:00
move OLLAMA_HOST to envconfig (#5009)
This commit is contained in:
parent
bba5d177aa
commit
c69bc19e46
6 changed files with 119 additions and 103 deletions
|
@ -2,7 +2,6 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"math"
|
||||
|
@ -377,8 +376,6 @@ func (m *Metrics) Summary() {
|
|||
}
|
||||
}
|
||||
|
||||
var ErrInvalidHostPort = errors.New("invalid port specified in OLLAMA_HOST")
|
||||
|
||||
func (opts *Options) FromMap(m map[string]interface{}) error {
|
||||
valueOpts := reflect.ValueOf(opts).Elem() // names of the fields in the options struct
|
||||
typeOpts := reflect.TypeOf(opts).Elem() // types of the fields in the options struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue