[BUG] Personality report's Groq call has no timeout

Đang mở
#4,035 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@nj-1812 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4039 của @nj-1812 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

status:assigned

What happens

/api/personality calls groqChatCompletion without an abort signal. /api/ai-insights uses AbortSignal.timeout(15_000), but this route has no limit, so if Groq hangs the request hangs until the platform kills it, and the user never gets the fallback report that's built for exactly this case.

The fallback report from a failed AI call is also cached for 24 hours (same as a real AI report).

Expected

  • Same 15 s timeout as ai-insights, so a hung call falls back to the templated report.
  • Cache the fallback only briefly when the AI call failed.

Where

src/app/api/personality/route.ts

I'd like to work on this.

Ngôn ngữ chính
TypeScript
Star
246
Fork
436
Merge trung bình
9 giờ 33 phút
Pull request đã merge (30 ngày)
213

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Priyanshu-byte-coder/devtrack

Tất cả issue của Priyanshu-byte-coder/devtrack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.