mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
sync
This commit is contained in:
@@ -216,7 +216,7 @@ export async function handler(
|
|||||||
// ie. 400 error is usually provider error like malformed request
|
// ie. 400 error is usually provider error like malformed request
|
||||||
res.status !== 400 &&
|
res.status !== 400 &&
|
||||||
// ie. openai 404 error: Item with id 'msg_0ead8b004a3b165d0069436a6b6834819896da85b63b196a3f' not found.
|
// 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
|
// ie. cannot change codex model providers mid-session
|
||||||
modelInfo.stickyProvider !== "strict" &&
|
modelInfo.stickyProvider !== "strict" &&
|
||||||
modelInfo.fallbackProvider &&
|
modelInfo.fallbackProvider &&
|
||||||
|
|||||||
Reference in New Issue
Block a user