diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 09:53:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 09:53:17 +0300 |
| commit | cd4265b8f87811db758c89bab5e62daa6c39337a (patch) | |
| tree | 94c0a129b4b6ee9132baaa81eb3fbc96b083cbd4 /internal/cli | |
| parent | 7e7d34bfc0aec2aa8dff4cefa720e4a9b42d95d8 (diff) | |
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
Diffstat (limited to 'internal/cli')
| -rw-r--r-- | internal/cli/video_runner.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
