mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-16 19:57:47 +01:00
linting
This commit is contained in:
@@ -816,7 +816,9 @@ class ClientBase:
|
||||
try:
|
||||
self.remote_model_name = await self.get_model_name()
|
||||
except Exception as e:
|
||||
self.log.debug("client status error", e=traceback.format_exc(), client=self.name)
|
||||
self.log.debug(
|
||||
"client status error", e=traceback.format_exc(), client=self.name
|
||||
)
|
||||
self.log.warning("client status error", e=e, client=self.name)
|
||||
self.remote_model_name = None
|
||||
self.connected = False
|
||||
|
||||
@@ -273,7 +273,7 @@ class KoboldCppClient(ClientBase):
|
||||
|
||||
async def get_model_name(self):
|
||||
self.ensure_api_endpoint_specified()
|
||||
|
||||
|
||||
if not self.api_url:
|
||||
return None
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ class ConfigPlugin(Plugin):
|
||||
|
||||
async def handle_determine_llm_template(self, data):
|
||||
payload = DetermineLLMTemplatePayload(**data["data"])
|
||||
|
||||
|
||||
if not payload.model:
|
||||
log.info("No model provided, skipping template determination")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user