compiler

Log | Files | Refs | README

commit e14c0adf9cf05ba3942f6598b500da6c8da0490d
parent 99bdfce88650df1ed2da1c3ce121811d4d2fc574
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Sat, 11 Apr 2026 11:17:33 +0530

Refactor backend.py for improved structure and security
Diffstat:
Mbackend.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend.py b/backend.py @@ -242,8 +242,8 @@ async def handle_client(request): error_log = data.get('error') language = data.get('language', 'c') - if not _API_KEY: - await ws.send_json({'type': 'ai_error', 'msg': 'Server Error: _API_KEY not configured.'}) + if not GEMINI_API_KEY: + await ws.send_json({'type': 'ai_error', 'msg': 'Server Error: GEMINI_API_KEY not configured.'}) continue # Construct Prompt - Ask for JSON in plain text
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror