summaryrefslogtreecommitdiff
path: root/internal/image
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-04 09:34:28 +0300
committerPaul Buetow <paul@buetow.org>2026-04-04 09:34:28 +0300
commita34789fd2f7c0e2a7292535dbd3cdc68d3f00675 (patch)
tree6077d20fbd740909c7066f4c99b75d8d9ddf6b8a /internal/image
parent3b26916eed21c5c4c3d2ef40f19a1ef6e47b5662 (diff)
feat: 5 story pages, 3 gallery pages, cover retry, adult characters, shorter TTS chunksv0.11.0
- Increase story pages from 3 to 5 (10 total with cover/gallery/back) - Add 3 text-free gallery pages with close-up heroine poses before back cover - Add retry logic to cover and back cover generation (same as story pages) - Enforce adult (18+) characters in generator prompt to avoid content policy blocks - Reduce TTS chunk size from 200 to 100 words to stay under 1-minute quality threshold - Increase TTS timeout from 2 to 3 minutes to avoid spurious deadline exceeded errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/image')
-rw-r--r--internal/image/nanobanana.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/image/nanobanana.go b/internal/image/nanobanana.go
index befe74c..ac55f3b 100644
--- a/internal/image/nanobanana.go
+++ b/internal/image/nanobanana.go
@@ -277,8 +277,8 @@ func (c *NanoBananaClient) resolveTranslation(_ context.Context, opts *SearchOpt
func (c *NanoBananaClient) resolvePrompt(ctx context.Context, opts *SearchOptions, translatedWord string) (string, error) {
if customPrompt := strings.TrimSpace(opts.CustomPrompt); customPrompt != "" {
- if len(customPrompt) > 1000 {
- customPrompt = customPrompt[:997] + "..."
+ if len(customPrompt) > 4000 {
+ customPrompt = customPrompt[:3997] + "..."
}
fmt.Printf("Using custom prompt: %s\n", customPrompt)
return customPrompt, nil
@@ -299,8 +299,8 @@ func (c *NanoBananaClient) buildPrompt(ctx context.Context, opts *SearchOptions)
translation := strings.TrimSpace(opts.Translation)
if customPrompt := strings.TrimSpace(opts.CustomPrompt); customPrompt != "" {
- if len(customPrompt) > 1000 {
- customPrompt = customPrompt[:997] + "..."
+ if len(customPrompt) > 4000 {
+ customPrompt = customPrompt[:3997] + "..."
}
fmt.Printf("Using custom prompt: %s\n", customPrompt)
return customPrompt, translation, nil