pranavkv commited on
Commit
4c55d7c
·
verified ·
1 Parent(s): bba4b62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -717,7 +717,7 @@ Provide a helpful, intelligent response using the real challenge data context.""
717
  "Authorization": f"Bearer {self.openai_api_key}" # FIXED: Proper auth header
718
  },
719
  json={
720
- "model": "o4-mini", # Fast and cost-effective
721
  "messages": [
722
  {"role": "system", "content": "You are an expert Topcoder Challenge Intelligence Assistant with real MCP data access."},
723
  {"role": "user", "content": system_prompt}
@@ -1514,7 +1514,7 @@ def create_ultimate_interface():
1514
  # SECURE API INTEGRATION:
1515
  openai_api_key = os.getenv("OPENAI_API_KEY", "")
1516
  endpoint = "https://api.openai.com/v1/chat/completions"
1517
- model = "o4-mini" # Fast and cost-effective
1518
  context = "Real MCP challenge data + conversation history"
1519
  ```
1520
 
 
717
  "Authorization": f"Bearer {self.openai_api_key}" # FIXED: Proper auth header
718
  },
719
  json={
720
+ "model": "gpt-4o-mini", # Fast and cost-effective
721
  "messages": [
722
  {"role": "system", "content": "You are an expert Topcoder Challenge Intelligence Assistant with real MCP data access."},
723
  {"role": "user", "content": system_prompt}
 
1514
  # SECURE API INTEGRATION:
1515
  openai_api_key = os.getenv("OPENAI_API_KEY", "")
1516
  endpoint = "https://api.openai.com/v1/chat/completions"
1517
+ model = "gpt-4o-mini" # Fast and cost-effective
1518
  context = "Real MCP challenge data + conversation history"
1519
  ```
1520