From 97b57916debe14916b2c48d85eef2560b7f6352d Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 27 Mar 2025 15:13:08 +0100 Subject: [PATCH] docs: specify the correct exceptions raised by request_haiku Refs: OPS-92 --- senju/haiku.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/senju/haiku.py b/senju/haiku.py index fda04ea..128ba79 100644 --- a/senju/haiku.py +++ b/senju/haiku.py @@ -108,8 +108,8 @@ class Haiku: :return: A new Haiku object containing the generated three lines. :rtype: Haiku - :raises: Possible JSONDecodeError which is caught and handled - with retries. + :raises: Exception if took the llm too many tries to write a fitting + haiku or JSONDecodeError if working with JSON failed """ ai_gen_request = { "model": "haiku",