Update app.py
Browse files716 unmodified lines717718719720721722723790 unmodified lines1514151515161517151815191520716 unmodified lines"Authorization": f"Bearer {self.openai_api_key}" # FIXED: Proper auth header},json={"model": "o4-mini", # Fast and cost-effective"messages": [{"role": "system", "content": "You are an expert Topcoder Challenge Intelligence Assistant with real MCP data access."},{"role": "user", "content": system_prompt}790 unmodified lines# SECURE API INTEGRATION:openai_api_key = os.getenv("OPENAI_API_KEY", "")endpoint = "https://api.openai.com/v1/chat/completions"model = "o4-mini" # Fast and cost-effectivecontext = "Real MCP challenge data + conversation history"```716 unmodified lines717718719720721722723790 unmodified lines1514151515161517151815191520716 unmodified lines"Authorization": f"Bearer {self.openai_api_key}" # FIXED: Proper auth header},json={"model": "gpt-4o-mini", # Fast and cost-effective"messages": [{"role": "system", "content": "You are an expert Topcoder Challenge Intelligence Assistant with real MCP data access."},{"role": "user", "content": system_prompt}790 unmodified lines# SECURE API INTEGRATION:openai_api_key = os.getenv("OPENAI_API_KEY", "")endpoint = "https://api.openai.com/v1/chat/completions"model = "gpt-4o-mini" # Fast and cost-effectivecontext = "Real MCP challenge data + conversation history"```
app.py+2-2