Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/ollama/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ func ListModels() ([]string, error) {
client := &http.Client{Timeout: 5 * time.Second}
resp, err := client.Get(Host + "/api/tags")
if err != nil {
return nil, err
// Network/connection error — return empty list so callers stay safe.
return []string{}, nil
}
defer resp.Body.Close()

Expand Down
2 changes: 1 addition & 1 deletion internal/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/AgentGuardHQ/shellforge/internal/logger"
)

const MaxOutput = 8000
const MaxOutput = 2000

type Definition struct {
Name string
Expand Down
Loading