[Add] translation_gemini: Integrate Gemini translation model and authentication; [Update] controller: Implement methods for managing Gemini models and auth keys; [Update] mainloop: Add routes for Gemini model and auth key management; [Update] translation: Enhance Translator class for Gemini API support; [Update] translation_languages: Add Gemini language mappings
This commit is contained in:
@@ -144,6 +144,10 @@ class Model:
|
||||
result = self.translator.authenticationPlamoAuthKey(auth_key, model=model)
|
||||
return result
|
||||
|
||||
def authenticationTranslatorGeminiAuthKey(self, auth_key: str, model: str) -> bool:
|
||||
result = self.translator.authenticationGeminiAuthKey(auth_key, model=model)
|
||||
return result
|
||||
|
||||
def startLogger(self):
|
||||
os_makedirs(config.PATH_LOGS, exist_ok=True)
|
||||
file_name = os_path.join(config.PATH_LOGS, f"{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.log")
|
||||
|
||||
Reference in New Issue
Block a user