mirror of
https://github.com/ollama/ollama.git
synced 2026-04-17 15:53:27 +02:00
llm: Make "do load request" error message more informative
This commit is contained in:
committed by
Jesse Gross
parent
0334ffa625
commit
6582f6da5c
@@ -1201,7 +1201,8 @@ func (s *llmServer) initModel(ctx context.Context, req LoadRequest, operation Lo
|
||||
|
||||
resp, err := http.DefaultClient.Do(r)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("do load request: %w", err)
|
||||
slog.Error("do load request", "error", err)
|
||||
return nil, errors.New("model failed to load, this may be due to resource limitations or an internal error, check ollama server logs for details")
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user