mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00: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:
parent
c1382818cc
commit
0fc6689dfb
1 changed files with 0 additions and 2 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue