summaryrefslogtreecommitdiff
path: root/internal/image
diff options
context:
space:
mode:
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