Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions extensions/cli/src/util/exponentialBackoff.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseLlmApi, isResponsesModel } from "@continuedev/openai-adapters";
import { BaseLlmApi } from "@continuedev/openai-adapters";
import type { ChatCompletionCreateParamsStreaming } from "openai/resources.mjs";

import { error, warn } from "../logging.js";
Expand Down Expand Up @@ -173,14 +173,6 @@ export async function chatCompletionStreamWithBackoff(
throw new Error("Request aborted");
}

const useResponses =
typeof llmApi.responsesStream === "function" &&
isResponsesModel(params.model);

if (useResponses) {
return llmApi.responsesStream!(params, abortSignal);
}

return llmApi.chatCompletionStream(params, abortSignal);
} catch (err: any) {
lastError = err;
Expand Down
Loading