[Add] Groq: Implement Groq API integration with authentication, model management, and translation capabilities.
This commit is contained in:
@@ -249,6 +249,23 @@ class Model:
|
||||
self.ensure_initialized()
|
||||
self.translator.updateOpenAIClient()
|
||||
|
||||
def authenticationTranslatorGroqAuthKey(self, auth_key: str) -> bool:
|
||||
result = self.translator.authenticationGroqAuthKey(auth_key, root_path=config.PATH_LOCAL)
|
||||
return result
|
||||
|
||||
def getTranslatorGroqModelList(self) -> list[str]:
|
||||
self.ensure_initialized()
|
||||
return self.translator.getGroqModelList()
|
||||
|
||||
def setTranslatorGroqModel(self, model: str) -> bool:
|
||||
self.ensure_initialized()
|
||||
result = self.translator.setGroqModel(model=model)
|
||||
return result
|
||||
|
||||
def updateTranslatorGroqClient(self) -> None:
|
||||
self.ensure_initialized()
|
||||
self.translator.updateGroqClient()
|
||||
|
||||
def getTranslatorLMStudioConnected(self) -> bool:
|
||||
self.ensure_initialized()
|
||||
return self.translator.getLMStudioConnected()
|
||||
|
||||
Reference in New Issue
Block a user