Skip to content

Commit ac0e0a8

Browse files
高魏洪qwencoder
andcommitted
refactor(model): Refactor the model download logic, support multiple solutions, and optimize automatic resource deployment
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent 9f9a111 commit ac0e0a8

8 files changed

Lines changed: 2024 additions & 844 deletions

File tree

__tests__/ut/commands/artModelService_test.ts

Lines changed: 625 additions & 0 deletions
Large diffs are not rendered by default.

__tests__/ut/commands/modelService_test.ts

Lines changed: 453 additions & 0 deletions
Large diffs are not rendered by default.

__tests__/ut/commands/model_test.ts

Lines changed: 0 additions & 500 deletions
This file was deleted.

publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Component
33
Name: fc3
44
Provider:
55
- 阿里云
6-
Version: 0.1.3
6+
Version: dev
77
Description: 阿里云函数计算全生命周期管理
88
HomePage: https://github.com/devsapp/fc3
99
Organization: 阿里云函数计算(FC)

src/subCommands/model/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const NEW_MODEL_SERVICE_CLIENT_CONNECT_TIMEOUT: number =
2+
parseInt(process.env.NEW_MODEL_SERVICE_CLIENT_CONNECT_TIMEOUT as string, 10) || 60 * 1000;
3+
export const NEW_MODEL_SERVICE_CLIENT_READ_TIMEOUT: number =
4+
parseInt(process.env.NEW_MODEL_SERVICE_CLIENT_READ_TIMEOUT as string, 10) || 86400 * 1000;
5+
export const MODEL_DOWNLOAD_TIMEOUT: number =
6+
parseInt(process.env.MODEL_DOWNLOAD_TIMEOUT as string, 10) || 42 * 60 * 1000;

0 commit comments

Comments
 (0)