mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
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,
|
||||
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 };
|
||||
|
||||
Reference in New Issue
Block a user