Skip to content

Commit 02b9fc3

Browse files
committed
Make timeout condition check if null or undefined
1 parent f12e7c8 commit 02b9fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vertexai/src/requests/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function makeRequest(
146146
);
147147
// Timeout is 180s by default
148148
const timeoutMillis =
149-
requestOptions?.timeout !== undefined && requestOptions.timeout >= 0
149+
requestOptions?.timeout != null && requestOptions.timeout >= 0
150150
? requestOptions.timeout
151151
: DEFAULT_FETCH_TIMEOUT_MS;
152152
const abortController = new AbortController();

0 commit comments

Comments
 (0)