Skip to content

Commit 23047b2

Browse files
committed
fix(openai): wrap readResponseWithLimit result in Uint8Array for TS BodyInit compat
- Fixes TS2345: Buffer<ArrayBufferLike> not assignable to BodyInit - Resolves check-prod-types, check-test-types, and check-additional-extension-package-boundary CI failures Ref. #99479
1 parent 7149668 commit 23047b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎extensions/openai/openai-chatgpt-oauth-flow.runtime.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ async function postTokenForm(
190190
),
191191
},
192192
);
193-
return new Response(responseBody, {
193+
return new Response(new Uint8Array(responseBody), {
194194
status: response.status,
195195
statusText: response.statusText,
196196
headers: response.headers,

0 commit comments

Comments
 (0)