From 3bc4064b61638689baafdf9c96ddee5c29366275 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 28 Mar 2025 18:44:57 -1000 Subject: [PATCH] fix: Default to free tier if OpenRouter tier check fails --- aider/onboarding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/onboarding.py b/aider/onboarding.py index bb296a27c..a366051e0 100644 --- a/aider/onboarding.py +++ b/aider/onboarding.py @@ -38,8 +38,8 @@ def check_openrouter_tier(api_key): # According to the documentation, 'is_free_tier' will be true if the user has never paid return data.get("data", {}).get("is_free_tier", True) # Default to True if not found except Exception: - # If there's any error, we'll default to assuming paid tier to be safe - return False + # If there's any error, we'll default to assuming free tier + return True def try_to_select_default_model():