Changesets · Branches · Tags · Compare
| Changeset | 307109b747b324817c6f368754bfc2cd3eec4e33cce97fd9bc351d835c8b86fe |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-06-25 16:10 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-06-25 16:10 -07:00 |
| Parents | f53b8f6ce186 |
2 files changed
modified packages/openai-adapters/package.json +1 −1
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "@continuedev/openai-adapters", |
| 3 | - "version": "1.0.42", | |
| 3 | + "version": "1.0.43", | |
| 4 | 4 | "description": "", |
| 5 | 5 | "main": "dist/index.js", |
| 6 | 6 | "types": "dist/index.d.ts", |
modified packages/openai-adapters/src/util.ts +1 −3
| @@ -146,9 +146,7 @@ | ||
| 146 | 146 | return fetch; |
| 147 | 147 | } |
| 148 | 148 | 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) { | |
| 152 | 150 | return fetchwithRequestOptions(req, init, requestOptions); |
| 153 | 151 | } else { |
| 154 | 152 | return fetchwithRequestOptions(req.url, req, requestOptions); |