Skip to content

Commit 007c138

Browse files
stainless-emRobertCraigie
authored andcommitted
chore(tests): switch proxy tests to fetchOptions
1 parent 62b2bd7 commit 007c138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecosystem-tests/bun/openai.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ test(`basic request works`, async function () {
4545

4646
test(`proxied request works`, async function () {
4747
const client = new OpenAI({
48-
fetch(url, init) {
49-
return fetch(url, { ...init, proxy: process.env['ECOSYSTEM_TESTS_PROXY'] });
48+
fetchOptions: {
49+
proxy: process.env['ECOSYSTEM_TESTS_PROXY'],
5050
},
5151
});
5252

0 commit comments

Comments
 (0)