Edit openai.ts

This commit is contained in:
reanon
2025-09-25 23:41:19 -08:00
parent 2ca2322baf
commit e2fb645481
+2 -2
View File
@@ -369,8 +369,8 @@ const setupChunkedTransfer: RequestHandler = (req, res, next) => {
// Functions to handle model-specific API routing // Functions to handle model-specific API routing
function shouldUseResponsesApi(model: string): boolean { function shouldUseResponsesApi(model: string): boolean {
return model === "o1-pro" || model.startsWith("o1-pro-") || return model === "o1-pro" || model.startsWith("o1-pro") ||
model === "o3-pro" || model.startsWith("o3-pro-") || model === "o3-pro" || model.startsWith("o3-pro") ||
model === "codex-mini-latest" || model.startsWith("codex-mini") || model === "codex-mini-latest" || model.startsWith("codex-mini") ||
model === "gpt-5-codex-latest" || model.startsWith("gpt-5-codex"); model === "gpt-5-codex-latest" || model.startsWith("gpt-5-codex");
} }