Elffuss BraidHub

kikocis/continue public

cleanup fetch logic, bump to 43
Changeset307109b747b324817c6f368754bfc2cd3eec4e33cce97fd9bc351d835c8b86fe
AuthorDallin Romney <dallinromney@gmail.com> · 2025-06-25 16:10 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-06-25 16:10 -07:00
Parentsf53b8f6ce186

Browse the files at this changeset

2 files changed

modified packages/openai-adapters/package.json +1 −1
@@ -1,6 +1,6 @@
11 {
22 "name": "@continuedev/openai-adapters",
3- "version": "1.0.42",
3+ "version": "1.0.43",
44 "description": "",
55 "main": "dist/index.js",
66 "types": "dist/index.d.ts",
modified packages/openai-adapters/src/util.ts +1 −3
@@ -146,9 +146,7 @@
146146 return fetch;
147147 }
148148 return (req: URL | RequestInfo, init?: RequestInit) => {
149- if (typeof req === "string") {
150- return fetchwithRequestOptions(req, init, requestOptions);
151- } else if (req instanceof URL) {
149+ if (typeof req === "string" || req instanceof URL) {
152150 return fetchwithRequestOptions(req, init, requestOptions);
153151 } else {
154152 return fetchwithRequestOptions(req.url, req, requestOptions);