Skip to content

Commit a85c176

Browse files
committed
chore(internal): fix tests failing on node v18
1 parent 38554d0 commit a85c176

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/lib/azure.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { AzureOpenAI } from 'openai';
22
import { APIUserAbortError } from 'openai';
33
import { type Response, RequestInit, RequestInfo } from 'openai/internal/builtin-types';
4+
import { File } from 'node:buffer';
45

56
const defaultFetch = fetch;
67

tests/uploads.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from 'fs';
22
import type { ResponseLike } from 'openai/internal/to-file';
33
import { toFile } from 'openai/uploads';
4+
import { File } from 'node:buffer';
45

56
class MyClass {
67
name: string = 'foo';

0 commit comments

Comments
 (0)