File size: 259 Bytes
f302ce8
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""Signal incomplete provider output without presenting it as a finished reply."""


class GenerationBudgetError(RuntimeError):
    def __init__(self, text):
        super().__init__("Model output exhausted its token budget")
        self.partial_text = text