From 7cfd6e777d23512ecae1c5e4fa9c8dcdf1f16951 Mon Sep 17 00:00:00 2001 From: EderChri Date: Tue, 3 Nov 2026 17:51:38 +0100 Subject: [PATCH] Added refunded to responses --- anansyTypes/schemas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anansyTypes/schemas.py b/anansyTypes/schemas.py index 7750390..f3df415 100644 --- a/anansyTypes/schemas.py +++ b/anansyTypes/schemas.py @@ -46,6 +46,7 @@ class AudioToSymbolRequest(ModifiedBaseModel): class AudioToSymbolResponse(ModifiedBaseModel): symbols: List[Symbol] sentence: str + refunded: bool = False # the translation was too poor to use up a free translation class TextToSymbolRequest(ModifiedBaseModel): text: str @@ -150,6 +151,7 @@ class TranslationTrace(ModifiedBaseModel): class TextToSymbolResponse(ModifiedBaseModel): symbols: List[Symbol] trace: Optional[TranslationTrace] = None # only when asked for, and allowed (ALLOW_TRACE) + refunded: bool = False # the translation was too poor to use up a free translation class GetLeafSymbolsRequest(ModifiedBaseModel): leaves: List[SymbolLeaf]