Skip to content

Commit 67ee286

Browse files
committed
fix: timeout
1 parent c4cab6c commit 67ee286

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web-app/server/tasks/ai/daily-report.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export default defineTask({
3131
const client = new OpenAI({
3232
apiKey: ai.apiKey,
3333
baseURL: ai.baseUrl,
34+
timeout: 120000,
35+
maxRetries: 2,
3436
})
3537

3638
const response = await client.chat.completions.create({

apps/web-app/server/tasks/ai/weekly-report.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default defineTask({
5252
const client = new OpenAI({
5353
apiKey: ai.apiKey,
5454
baseURL: ai.baseUrl,
55+
timeout: 120000,
56+
maxRetries: 2,
5557
})
5658

5759
const response = await client.chat.completions.create({

0 commit comments

Comments
 (0)