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 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...")