Skip to content

ModelUtils.ts should not contain process execution logic #1809

@axel7083

Description

@axel7083

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 file

export async function isModelUploaded(machine: string, modelInfo: ModelInfo): Promise<boolean> {

export async function deleteRemoteModel(machine: string, modelInfo: ModelInfo): Promise<void> {

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 podman-desktop/podman-desktop#8891 has been merged

Describe the solution you'd like

We need to support the new podman-desktop/podman-desktop#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 #1591

Metadata

Metadata

Assignees

Type

No type

Projects

Status

⏱Postponed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions