mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 13:02:15 +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,
|
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 };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue