From cd4265b8f87811db758c89bab5e62daa6c39337a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 8 Apr 2026 09:53:17 +0300 Subject: feat(httpctx): add timeouts for OpenAI, Gemini, and HTTP downloads Introduce internal/httpctx with non-zero http.Client timeouts for go-openai and google.golang.org/genai, shared image download client, and WithTimeoutUnlessSet for operation-level deadlines when callers use Background. Wire NewOpenAIClient/NewGenAIClient everywhere clients are constructed. Apply Search timeouts for DALL-E and Nano Banana, provider audio timeouts, model-list timeouts, Veo operation timeouts, story page download context, and single-word CLI processing cap. Made-with: Cursor --- internal/cli/video_runner.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/cli') diff --git a/internal/cli/video_runner.go b/internal/cli/video_runner.go index 96cd7cd..aab23ae 100644 --- a/internal/cli/video_runner.go +++ b/internal/cli/video_runner.go @@ -34,6 +34,7 @@ func GenerateSelectedVideos(apiKey string, selectedPaths []string) error { for _, imgPath := range selectedPaths { fmt.Printf("Generating video for: %s\n", imgPath) + // GenerateVideoFromPath applies an operation-level deadline when ctx has none. mp4Path, err := gen.GenerateVideoFromPath(ctx, imgPath) if err != nil { return fmt.Errorf("cli: generating video for %s: %w", imgPath, err) -- cgit v1.2.3