mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
better checking for OLLAMA_HOST variable (#3661)
This commit is contained in:
parent
d4ac57e240
commit
9009bedf13
4 changed files with 83 additions and 15 deletions
|
@ -309,6 +309,7 @@ func (m *Metrics) Summary() {
|
|||
}
|
||||
|
||||
var ErrInvalidOpts = errors.New("invalid options")
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue