v3.2.1: Reduce Coder max iterations from 15 to 8
Browse files- Dockerfile +1 -1
- chainlit_app.py +2 -2
- codepilot/agents/coder_agent.py +2 -2
- codepilot/agents/orchestrator.py +1 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# HuggingFace Spaces Dockerfile for CodePilot
|
| 2 |
-
# BUILD_VERSION:
|
| 3 |
FROM python:3.11-slim
|
| 4 |
|
| 5 |
# Set working directory
|
|
|
|
| 1 |
# HuggingFace Spaces Dockerfile for CodePilot
|
| 2 |
+
# BUILD_VERSION: 8 (v3.2.1 coder max 8 iterations)
|
| 3 |
FROM python:3.11-slim
|
| 4 |
|
| 5 |
# Set working directory
|
chainlit_app.py
CHANGED
|
@@ -20,8 +20,8 @@ from concurrent.futures import ThreadPoolExecutor
|
|
| 20 |
# ============================================================
|
| 21 |
# STARTUP VERSION CHECK - Change this to detect if rebuild worked
|
| 22 |
# ============================================================
|
| 23 |
-
APP_VERSION = "3.2.
|
| 24 |
-
BUILD_ID = "2024-12-19-
|
| 25 |
print("=" * 60)
|
| 26 |
print(f"[STARTUP] CodePilot Chainlit App")
|
| 27 |
print(f"[STARTUP] APP_VERSION: {APP_VERSION}")
|
|
|
|
| 20 |
# ============================================================
|
| 21 |
# STARTUP VERSION CHECK - Change this to detect if rebuild worked
|
| 22 |
# ============================================================
|
| 23 |
+
APP_VERSION = "3.2.1-coder-max8"
|
| 24 |
+
BUILD_ID = "2024-12-19-v7"
|
| 25 |
print("=" * 60)
|
| 26 |
print(f"[STARTUP] CodePilot Chainlit App")
|
| 27 |
print(f"[STARTUP] APP_VERSION: {APP_VERSION}")
|
codepilot/agents/coder_agent.py
CHANGED
|
@@ -175,8 +175,8 @@ Test your code in the sandbox before finishing."""
|
|
| 175 |
# Track which files were modified
|
| 176 |
modified_files = {}
|
| 177 |
|
| 178 |
-
# Run coding loop
|
| 179 |
-
max_iterations =
|
| 180 |
for iteration in range(max_iterations):
|
| 181 |
# Call LLM
|
| 182 |
response = self.client.chat(
|
|
|
|
| 175 |
# Track which files were modified
|
| 176 |
modified_files = {}
|
| 177 |
|
| 178 |
+
# Run coding loop (v3.2: reduced from 15 to 8 to prevent over-exploration)
|
| 179 |
+
max_iterations = 8
|
| 180 |
for iteration in range(max_iterations):
|
| 181 |
# Call LLM
|
| 182 |
response = self.client.chat(
|
codepilot/agents/orchestrator.py
CHANGED
|
@@ -9,7 +9,7 @@ The orchestrator is the "brain" that:
|
|
| 9 |
"""
|
| 10 |
|
| 11 |
# VERSION CHECK - If you see this, new code is running!
|
| 12 |
-
ORCHESTRATOR_VERSION = "3.2.
|
| 13 |
print(f"[ORCHESTRATOR] ========== LOADING VERSION {ORCHESTRATOR_VERSION} ==========")
|
| 14 |
|
| 15 |
from enum import Enum
|
|
|
|
| 9 |
"""
|
| 10 |
|
| 11 |
# VERSION CHECK - If you see this, new code is running!
|
| 12 |
+
ORCHESTRATOR_VERSION = "3.2.1-coder-max8"
|
| 13 |
print(f"[ORCHESTRATOR] ========== LOADING VERSION {ORCHESTRATOR_VERSION} ==========")
|
| 14 |
|
| 15 |
from enum import Enum
|