We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff1076a commit 0aea8b8Copy full SHA for 0aea8b8
sdk/src/impl/llm.ts
@@ -216,6 +216,9 @@ export async function* promptAiSdkStream(
216
prompt: undefined,
217
model: aiSDKModel,
218
messages: convertCbToModelMessages(params),
219
+ // When using Claude OAuth, disable retries so we can immediately fall back to Codebuff
220
+ // backend on rate limit errors instead of retrying 4 times first
221
+ ...(isClaudeOAuth && { maxRetries: 0 }),
222
providerOptions: getProviderOptions({
223
...params,
224
agentProviderOptions: params.agentProviderOptions,
0 commit comments