Add streaming fallback to mitigate openrouter failed requests

This commit is contained in:
Saoud Rizwan
2024-08-12 23:18:45 -04:00
parent a3d345d1af
commit b2ced9b484
3 changed files with 131 additions and 28 deletions

View File

@@ -457,8 +457,8 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
if (apiKey) {
apiProvider = "anthropic"
} else {
// New users should default to anthropic (openrouter doesn't perform well with large files)
apiProvider = "anthropic"
// New users should default to openrouter (better rate limits and wider model selection)
apiProvider = "openrouter"
}
}