|
|
@@ -216,7 +216,7 @@ export async function handler(
|
|
|
// ie. 400 error is usually provider error like malformed request
|
|
|
res.status !== 400 &&
|
|
|
// ie. openai 404 error: Item with id 'msg_0ead8b004a3b165d0069436a6b6834819896da85b63b196a3f' not found.
|
|
|
- res.status !== 404 &&
|
|
|
+ !(modelInfo.id.startsWith("gpt-") && res.status === 404) &&
|
|
|
// ie. cannot change codex model providers mid-session
|
|
|
modelInfo.stickyProvider !== "strict" &&
|
|
|
modelInfo.fallbackProvider &&
|