Skip to content

Commit

Permalink
Get new links working.
Browse files Browse the repository at this point in the history
  • Loading branch information
squidarth committed Jun 17, 2024
1 parent 27b89b0 commit 589a247
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions truss-chains/truss_chains/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@ def add_needed_chainlets(chainlet: definitions.ChainletAPIDescriptor):


def _chainlet_logs_url(
chain_id: str, chain_deployment_id: str, chainlet_id: str
chain_id: str,
chain_deployment_id: str,
chainlet_id: str,
remote: b10_remote.BasetenRemote,
) -> str:
return ""
return f"{remote._remote_url}/chains/{chain_id}/logs/{chain_deployment_id}/{chainlet_id}"


class RemoteChainService:
Expand All @@ -175,7 +178,10 @@ def get_info(self) -> list[tuple[str, str, str]]:
chainlet["name"],
chainlet["oracle_version"]["current_model_deployment_status"]["status"],
_chainlet_logs_url(
self._chain_id, self._chain_deployment_id, chainlet["id"]
self._chain_id,
self._chain_deployment_id,
chainlet["id"],
self._remote,
),
)
for chainlet in chainlets
Expand Down

0 comments on commit 589a247

Please sign in to comment.