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:
@@ -302,7 +302,6 @@ function createClient(
|
|||||||
baseURL: model.baseUrl,
|
baseURL: model.baseUrl,
|
||||||
defaultHeaders,
|
defaultHeaders,
|
||||||
dangerouslyAllowBrowser: true,
|
dangerouslyAllowBrowser: true,
|
||||||
maxRetries: 0, // Disable SDK retries, handled by coding-agent
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return { client, isOAuthToken: true };
|
return { client, isOAuthToken: true };
|
||||||
@@ -319,7 +318,6 @@ function createClient(
|
|||||||
baseURL: model.baseUrl,
|
baseURL: model.baseUrl,
|
||||||
dangerouslyAllowBrowser: true,
|
dangerouslyAllowBrowser: true,
|
||||||
defaultHeaders,
|
defaultHeaders,
|
||||||
maxRetries: 0, // Disable SDK retries, handled by coding-agent
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return { client, isOAuthToken: false };
|
return { client, isOAuthToken: false };
|
||||||
|
|||||||
Reference in New Issue
Block a user