From f92939a52687fe46a66c54f3e842fe5b39f7ad3d Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Sat, 4 Oct 2025 19:00:14 +0200 Subject: [PATCH] fix app using gemini when hackclub ai is enabled --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 926fb28..08c7f73 100644 --- a/app.py +++ b/app.py @@ -255,7 +255,7 @@ def register(): return redirect(url_for("login")) def ai_prompt(prompt): - if not os.environ.get("USE_HACKCLUB_AI", "true").lower() == "true": + if os.environ.get("USE_HACKCLUB_AI", "true").lower() == "true": response = requests.post( "https://ai.hackclub.com/chat/completions", headers={"Content-Type": "application/json"},