Changesets · Branches · Tags · Compare
| Changeset | f53b8f6ce1867fcc2a9bf466d2fbc7139bd748618def94da8ebd465cf57e4974 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-06-25 15:45 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-06-25 15:45 -07:00 |
| Parents | c08d14cc1e59 |
1 file changed
modified packages/openai-adapters/src/util.ts +2 −6
| @@ -1,11 +1,7 @@ | ||
| 1 | 1 | import { RequestOptions } from "@continuedev/config-types"; |
| 2 | 2 | import { fetchwithRequestOptions } from "@continuedev/fetch"; |
| 3 | 3 | import fetch from "node-fetch"; |
| 4 | -import { | |
| 5 | - type RequestInfo, | |
| 6 | - type RequestInit, | |
| 7 | - type Response, | |
| 8 | -} from "openai/_shims/index"; | |
| 4 | +import { type RequestInfo, type RequestInit } from "openai/_shims/index"; | |
| 9 | 5 | import { |
| 10 | 6 | ChatCompletionChunk, |
| 11 | 7 | CompletionUsage, |
| @@ -145,7 +141,7 @@ | ||
| 145 | 141 | |
| 146 | 142 | export function customFetch( |
| 147 | 143 | requestOptions: RequestOptions | undefined, |
| 148 | -): (req: URL | RequestInfo, init?: RequestInit) => Promise<Response> { | |
| 144 | +): typeof fetch { | |
| 149 | 145 | if (process.env.FEATURE_FLAG_DISABLE_CUSTOM_FETCH) { |
| 150 | 146 | return fetch; |
| 151 | 147 | } |