Skip to content

Commit b15c838

Browse files
authored
Merge pull request #118 from devsapp/fix-until-function
fix: remove support funModel
2 parents bfffbcc + 409b77f commit b15c838

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/subCommands/model/fileManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ export class ArtModelService {
273273
filepath = `${mountDir}/${path}`;
274274
} else {
275275
// 直接拼接uri和path
276-
const normalizedUri = uri.endsWith('/') ? uri.slice(0, -1) : uri;
276+
let normalizedUri = uri.endsWith('/') ? uri.slice(0, -1) : uri;
277+
normalizedUri = normalizedUri.replace(/^(nas|oss|file):\/\//, '/');
277278
filepath = `${normalizedUri}/${path}`;
278279
}
279280

src/subCommands/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class Model {
7878
const modelConfig = annotations?.modelConfig;
7979

8080
try {
81-
if (modelConfig.solution === 'funArt') {
81+
if (modelConfig.solution === 'funArt' || modelConfig.solution === 'funModel') {
8282
const modelArtService = await this.getModelArtService();
8383
await modelArtService.removeModel(this.name, params);
8484
} else {

0 commit comments

Comments
 (0)