Skip to content

Conversation

@Rin-Li
Copy link
Contributor

@Rin-Li Rin-Li commented Jul 25, 2025

Title

Add a feature create model from local path.

Why need?

Users may have some models in their local path and want to use the swama to load them. This feature allow user to create their own model from local and give a name then swama can load them.

How test?

Create model from local path, give the name then use swama list and swama run. Also unitest.

Relate

#37

@yulinli-rin yulinli-rin requested a review from sxy-trans-n July 25, 2025 07:52
FileManager.default.fileExists(atPath: customPath.appendingPathComponent(".swama-meta.json").path)
{
return customPath
return parseModelMetadataPath(from: customPath.appendingPathComponent(".swama-meta.json"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check that path is existed or not firstly.

@yulinli-rin yulinli-rin changed the title Add a feature create CLI feat: add a feature create model from local path Jul 28, 2025
@Rin-Li Rin-Li force-pushed the feature/create branch 2 times, most recently from 3e7a102 to daa44e1 Compare July 29, 2025 09:00
@sxy-trans-n sxy-trans-n merged commit 88f2084 into Trans-N-ai:main Jul 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants