mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Move envconfig and consolidate env vars (#4608)
This commit is contained in:
parent
afd2b058b4
commit
4cc3be3035
14 changed files with 81 additions and 51 deletions
|
@ -209,14 +209,14 @@ func Test_Routes(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
t.Setenv("OLLAMA_MODELS", t.TempDir())
|
||||
|
||||
s := &Server{}
|
||||
router := s.GenerateRoutes()
|
||||
|
||||
httpSrv := httptest.NewServer(router)
|
||||
t.Cleanup(httpSrv.Close)
|
||||
|
||||
t.Setenv("OLLAMA_MODELS", t.TempDir())
|
||||
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.Name, func(t *testing.T) {
|
||||
u := httpSrv.URL + tc.Path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue