Skip to content

Commit 424adee

Browse files
committed
v0.11.0
1 parent 2cf63e9 commit 424adee

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/NOTES.md
21
/dist
2+
/src/podman_ai_lab_stack.egg-info/

build/Containerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316
2+
3+
RUN pip install fastapi
4+
RUN pip install --extra-index-url https://test.pypi.org/simple/ podman-ai-lab-stack==0.11.0
5+
RUN \
6+
mkdir -p $HOME/.llama/providers.d/remote/inference && \
7+
cp /opt/app-root/lib64/python3.11/site-packages/podman_ai_lab_stack/providers.d/remote/inference/podman-ai-lab.yaml \
8+
$HOME/.llama/providers.d/remote/inference/
9+
10+
EXPOSE 8321
11+
12+
ENTRYPOINT [ "llama", "stack", "run", "/opt/app-root/lib64/python3.11/site-packages/podman_ai_lab_stack/run.yaml" ]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "podman-ai-lab-stack"
7-
version = "0.9.0"
7+
version = "0.11.0"
88
description = "Podman AI Lab provider for Llama Stack"
99
requires-python = ">=3.10"
1010
dynamic = ["dependencies"]

src/podman_ai_lab_stack/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
from pydantic import BaseModel
44

5-
DEFAULT_PODMAN_AI_LAB_URL = "http://localhost:10434"
5+
DEFAULT_PODMAN_AI_LAB_URL = "http://host.containers.internal:10434"
66

77

88
class PodmanAILabImplConfig(BaseModel):
99
url: str = DEFAULT_PODMAN_AI_LAB_URL
1010

1111
@classmethod
1212
def sample_run_config(
13-
cls, url: str = "${env.PODMAN_AI_LAB_URL:http://localhost:10434}", **kwargsi
13+
cls, url: str = "${env.PODMAN_AI_LAB_URL:http://host.containers.internal:10434}", **kwargsi
1414
) -> Dict[str, Any]:
1515
return {"url": url}

src/podman_ai_lab_stack/podman_ai_lab.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ async def initialize(self) -> None:
6767
logger.info(f"checking connectivity to Podman AI Lab at `{self.url}`...")
6868
try:
6969
await self.client.list()
70-
# for model in response["models"]:
71-
# await self.models.register_model(model.model, model.model, 'podman-ai-lab')
7270
except ConnectionError as e:
7371
raise RuntimeError("Podman AI Lab Server is not running, start it using Podman Desktop") from e
7472

0 commit comments

Comments
 (0)