mirror of
https://github.com/csd4ni3l/debt-by-ai.git
synced 2026-01-01 04:23:45 +01:00
fix app using gemini when hackclub ai is enabled
This commit is contained in:
2
app.py
2
app.py
@@ -255,7 +255,7 @@ def register():
|
|||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
def ai_prompt(prompt):
|
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(
|
response = requests.post(
|
||||||
"https://ai.hackclub.com/chat/completions",
|
"https://ai.hackclub.com/chat/completions",
|
||||||
headers={"Content-Type": "application/json"},
|
headers={"Content-Type": "application/json"},
|
||||||
|
|||||||
Reference in New Issue
Block a user