[Update] translation: Integrate Plamo API support with model selection and authentication features

This commit is contained in:
misyaguziya
2025-09-11 14:15:26 +09:00
parent d76a5b9e07
commit bc269bc1fb
6 changed files with 164 additions and 26 deletions

View File

@@ -136,12 +136,12 @@ class Model:
del self.keyword_processor
self.keyword_processor = KeywordProcessor()
def authenticationTranslatorDeepLAuthKey(self, auth_key):
def authenticationTranslatorDeepLAuthKey(self, auth_key: str) -> bool:
result = self.translator.authenticationDeepLAuthKey(auth_key)
return result
def authenticationTranslatorPlamoAuthKey(self, auth_key):
result = self.translator.authenticationPlamoAuthKey(auth_key)
def authenticationTranslatorPlamoAuthKey(self, auth_key: str, model: str) -> bool:
result = self.translator.authenticationPlamoAuthKey(auth_key, model=model)
return result
def startLogger(self):