Skip to content

Commit 611ba70

Browse files
committed
sourcery-ai comments
Signed-off-by: Kush Gupta <[email protected]>
1 parent 9dc1d9e commit 611ba70

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ramalama/chat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def _req(self):
169169
if not getattr(self.args, "initial_connection", False):
170170
print(f"\rError: could not connect to: {self.url}", file=sys.stderr)
171171
self.kills()
172+
else:
173+
logger.debug(f"Could not connect to: {self.url}")
172174

173175
return None
174176

ramalama/model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ def _connect_and_chat(self, args, server_pid):
387387
args.pid2kill = server_pid
388388
if getattr(args, "runtime", None) == "mlx":
389389
return self._handle_mlx_chat(args)
390-
else:
391-
chat.chat(args)
392-
return 0
390+
chat.chat(args)
391+
return 0
393392

394393
def _handle_container_chat(self, args, server_pid):
395394
"""Handle chat for container-based execution."""

0 commit comments

Comments
 (0)