From 3a26a80533c69c7c6c4602b5da48b8ca6869be5c Mon Sep 17 00:00:00 2001 From: Vic <125237471+vicsanity623@users.noreply.github.com> Date: Mon, 9 Mar 2026 20:08:43 -0700 Subject: [PATCH 1/2] Update core_utils.py increase sleep times [core_utils] if is cloud: 2 > 7 if not response...: 60 > 90 --- src/pyob/core_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyob/core_utils.py b/src/pyob/core_utils.py index 9ee013d..0e9b2d3 100644 --- a/src/pyob/core_utils.py +++ b/src/pyob/core_utils.py @@ -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..." ) @@ -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...") From 11fa2abb41c1057d1406533a7bb6680b6f9548cf Mon Sep 17 00:00:00 2001 From: Vic <125237471+vicsanity623@users.noreply.github.com> Date: Mon, 9 Mar 2026 20:15:23 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ff42e88..705d4e3 100644 --- a/README.md +++ b/README.md @@ -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