Update app.py
Browse files
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": "
|
| 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 = "
|
| 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 |
|