Fix OpenRouter error handling (#2049)

This commit is contained in:
Alex Gleason
2025-04-11 14:16:38 -05:00
committed by GitHub
parent baa5be2bc0
commit cb32160a49
3 changed files with 42 additions and 6 deletions
+2 -2
View File
@@ -233,8 +233,8 @@ impl ProviderTester {
dbg!(&result);
println!("===================");
// Ollama and OpenRouter truncate by default even when the context window is exceeded
if self.name.to_lowercase() == "ollama" || self.name.to_lowercase() == "openrouter" {
// Ollama truncates by default even when the context window is exceeded
if self.name.to_lowercase() == "ollama" {
assert!(
result.is_ok(),
"Expected to succeed because of default truncation"