We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8799f0c + 55ad993 commit 6c10b0aCopy full SHA for 6c10b0a
1 file changed
src/pyob/models.py
@@ -381,6 +381,10 @@ def get_valid_llm_response_engine(
381
382
# If still invalid, back off and retry
383
wait = 300 if is_cloud else 10
384
+
385
+ # --- ADD THIS LINE SO YOU CAN SEE WHAT IT FAILED ON ---
386
+ logger.error(f"Validation Failed! The AI said: '{response_text}'")
387
388
logger.warning(f"AI response failed validation. Backing off {wait}s...")
389
time.sleep(wait)
390
attempts += 1
0 commit comments