From b989376becf4f12f666ad16326d036c035282b05 Mon Sep 17 00:00:00 2001 From: Philip Zeyliger Date: Fri, 30 Jan 2026 21:14:46 +0000 Subject: [PATCH] shelley/server: reduce custom model test timeout to 10 seconds Prompt: Fix https://github.com/boldsoftware/shelley/issues/57 in a new worktree. The issue is with the Test button for custom models; should definitely have a ~10 second timeout. Fixes https://github.com/boldsoftware/shelley/issues/57 Co-authored-by: Shelley --- server/custom_models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/custom_models.go b/server/custom_models.go index e4ec24bbd0c0e20a3504ada40cb7b99931d0e77d..619e5a6104730ab865714ac8ca150ddcbe5b9f52 100644 --- a/server/custom_models.go +++ b/server/custom_models.go @@ -382,7 +382,7 @@ func (s *Server) handleTestModel(w http.ResponseWriter, r *http.Request) { } // Send a simple test request - ctx, cancel := context.WithTimeout(r.Context(), 30*time.Second) + ctx, cancel := context.WithTimeout(r.Context(), 10*time.Second) defer cancel() request := &llm.Request{