lower timeout
Browse files
src/lib/utils/qwenTimeout.ts
CHANGED
|
@@ -3,7 +3,7 @@ import pTimeout from 'p-timeout';
|
|
| 3 |
|
| 4 |
export async function withQwenTimeout<T>(
|
| 5 |
fn: () => Promise<T>,
|
| 6 |
-
{ totalTimeout =
|
| 7 |
): Promise<T> {
|
| 8 |
return pRetry(
|
| 9 |
async () => {
|
|
|
|
| 3 |
|
| 4 |
export async function withQwenTimeout<T>(
|
| 5 |
fn: () => Promise<T>,
|
| 6 |
+
{ totalTimeout = 70_000, retries = 2 } = {}
|
| 7 |
): Promise<T> {
|
| 8 |
return pRetry(
|
| 9 |
async () => {
|