From e2fb645481133bdefe8cfbded923b1e44d38cdfb Mon Sep 17 00:00:00 2001 From: reanon <85157-reanon@users.noreply.gitgud.io> Date: Thu, 25 Sep 2025 23:41:19 -0800 Subject: [PATCH] Edit openai.ts --- src/proxy/openai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy/openai.ts b/src/proxy/openai.ts index 7e8ae78..f8177ab 100644 --- a/src/proxy/openai.ts +++ b/src/proxy/openai.ts @@ -369,8 +369,8 @@ const setupChunkedTransfer: RequestHandler = (req, res, next) => { // Functions to handle model-specific API routing function shouldUseResponsesApi(model: string): boolean { - return model === "o1-pro" || model.startsWith("o1-pro-") || - model === "o3-pro" || model.startsWith("o3-pro-") || + return model === "o1-pro" || model.startsWith("o1-pro") || + model === "o3-pro" || model.startsWith("o3-pro") || model === "codex-mini-latest" || model.startsWith("codex-mini") || model === "gpt-5-codex-latest" || model.startsWith("gpt-5-codex"); }