Open axel7083 opened 1 month ago
Currently the packages/backend/src/utils/modelsUtils.ts has two method which should not be in an utility file
packages/backend/src/utils/modelsUtils.ts
https://github.com/containers/podman-desktop-extension-ai-lab/blob/e2d5a2e6b5839337575fbd622ef271ca1d46be1b/packages/backend/src/utils/modelsUtils.ts#L50
https://github.com/containers/podman-desktop-extension-ai-lab/blob/e2d5a2e6b5839337575fbd622ef271ca1d46be1b/packages/backend/src/utils/modelsUtils.ts#L66
Those two method uses the process api exposed by the podman-desktop core. They are getting the podman executable through getPodmanCli which should be deprecated since https://github.com/containers/podman-desktop/pull/8891 has been merged
process
getPodmanCli
We need to support the new https://github.com/containers/podman-desktop/pull/8891 and properly manage the legacy support (version < 1.13).
The logic method should be moved to the PodmanConnection class.
PodmanConnection
No response
This work is required for https://github.com/containers/podman-desktop-extension-ai-lab/issues/1591
Is your enhancement related to a problem? Please describe
Currently the
packages/backend/src/utils/modelsUtils.ts
has two method which should not be in an utility filehttps://github.com/containers/podman-desktop-extension-ai-lab/blob/e2d5a2e6b5839337575fbd622ef271ca1d46be1b/packages/backend/src/utils/modelsUtils.ts#L50
https://github.com/containers/podman-desktop-extension-ai-lab/blob/e2d5a2e6b5839337575fbd622ef271ca1d46be1b/packages/backend/src/utils/modelsUtils.ts#L66
Those two method uses the
process
api exposed by the podman-desktop core. They are getting the podman executable throughgetPodmanCli
which should be deprecated since https://github.com/containers/podman-desktop/pull/8891 has been mergedDescribe the solution you'd like
We need to support the new https://github.com/containers/podman-desktop/pull/8891 and properly manage the legacy support (version < 1.13).
The logic method should be moved to the
PodmanConnection
class.Describe alternatives you've considered
No response
Additional context
This work is required for https://github.com/containers/podman-desktop-extension-ai-lab/issues/1591