Update app.py
Browse files716 unmodified lines717718719720720721722723790 unmodified lines15141515151615171517151815191520716 unmodified lines "Authorization": f"Bearer {self.openai_api_key}" # FIXED: Proper auth header }, json={ "model": "o4-mini", # Fast and cost-effective "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 = "o4-mini" # Fast and cost-effective model = "gpt-4o-mini" # Fast and cost-effective context = "Real MCP challenge data + conversation history" ``` app.py+2-2