Added refunded to responses
This commit is contained in:
1 parent
f4d05ac2b9
commit
7cfd6e777d
1 file changed
+2
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user