fix(ai): re-enable SDK retries for Anthropic provider

The SDK default of 2 retries handles transient HTTP failures quickly,
while coding-agent retries handle persistent errors with user feedback.
This commit is contained in:
Mario Zechner 2025-12-20 09:56:11 +01:00
parent c1382818cc
commit 0fc6689dfb

View file

@ -302,7 +302,6 @@ function createClient(
baseURL: model.baseUrl,
defaultHeaders,
dangerouslyAllowBrowser: true,
maxRetries: 0, // Disable SDK retries, handled by coding-agent
});
return { client, isOAuthToken: true };
@ -319,7 +318,6 @@ function createClient(
baseURL: model.baseUrl,
dangerouslyAllowBrowser: true,
defaultHeaders,
maxRetries: 0, // Disable SDK retries, handled by coding-agent
});
return { client, isOAuthToken: false };