Added refunded to responses

This commit is contained in:
EderChri committed 2026-11-03 17:51:38 +01:00
1 parent f4d05ac2b9
commit 7cfd6e777d
1 file changed
+2
+2
View File
@@ -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]