docs: specify the correct exceptions raised by request_haiku

Refs: OPS-92
This commit is contained in:
Christoph J. Scherr 2025-03-27 15:13:08 +01:00
parent e5fa07ccc1
commit 97b57916de
No known key found for this signature in database
GPG key ID: 9EB784BB202BB7BB

View file

@ -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",