Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pip install -e .
```
2. **Validate**: `./check.sh`
3. **Launch**: `pyob .`
4. **Dashboard**: `observer.HTML` or `http://localhost:5000/`
---

### 🎯 Quick Start Workflow
Expand Down
4 changes: 2 additions & 2 deletions src/pyob/core_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def get_valid_llm_response(self, prompt: str, validator, context: str = "") -> s
# 3. Handle Empty or Error Responses (STOPS THE INFINITE LOOP)
if not response_text or response_text.startswith("ERROR_CODE_"):
# If we are in the cloud, we need to wait longer for the token bucket to refill
wait_time = 60 if is_cloud else 10
wait_time = 90 if is_cloud else 10
logger.warning(
f"⚠️ API Error/Empty Response. Sleeping {wait_time}s to refill tokens..."
)
Expand All @@ -499,7 +499,7 @@ def get_valid_llm_response(self, prompt: str, validator, context: str = "") -> s
# 4. Final Validation
if validator(response_text):
if is_cloud:
time.sleep(2) # Success breather
time.sleep(7) # Success breather
return response_text

logger.warning("LLM response failed internal validation. Retrying in 5s...")
Expand Down