Commit 87d52ad
committed
fix: add 3s timeout to warmup request to prevent exit hang
Codex review found that the fire-and-forget warmup models.list()
had no timeout. The OpenAI client defaults to a 10-minute timeout,
so an unreachable API could keep the Node process alive long after
the user exits.1 parent db78e2b commit 87d52ad
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
802 | 810 | | |
803 | 811 | | |
804 | 812 | | |
| |||
0 commit comments