Skip to content

Commit 7e1afb6

Browse files
committed
fix: Increase max tokens for document generation to prevent truncation
- PRD: 4000 → 6000 tokens, timeout 120s → 150s - Tech Spec: 4000 → 8000 tokens, timeout 120s → 180s Tech specs were getting truncated mid-content due to insufficient token limits.
1 parent 894321d commit 7e1afb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Jobs/GeneratePrdJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public function handle(): void
8484

8585
$response = Prism::text()
8686
->using($providerEnum, $run->model)
87-
->withMaxTokens(4000)
87+
->withMaxTokens(6000)
8888
->withSystemPrompt($system)
8989
->withPrompt($prompt)
90-
->withClientOptions(['timeout' => 120])
90+
->withClientOptions(['timeout' => 150])
9191
->asText();
9292

9393
// Store rate limit info from successful response

app/Jobs/GenerateTechSpecJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public function handle(): void
8989

9090
$response = Prism::text()
9191
->using($providerEnum, $run->model)
92-
->withMaxTokens(4000)
92+
->withMaxTokens(8000)
9393
->withSystemPrompt($system)
9494
->withPrompt($prompt)
95-
->withClientOptions(['timeout' => 120])
95+
->withClientOptions(['timeout' => 180])
9696
->asText();
9797

9898
// Store rate limit info from successful response

0 commit comments

Comments
 (0)