File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tencent-component-toolkit" ,
3
- "version" : " 2.24.2 " ,
3
+ "version" : " 2.24.3 " ,
4
4
"description" : " Tencent component toolkit" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -67,6 +67,13 @@ export interface BaseFunctionConfig {
67
67
ProtocolParams ?: ProtocolParams ;
68
68
NodeType ?: string ;
69
69
NodeSpec ?: string ;
70
+ SFType ?: string ;
71
+ GpuReservedQuota ?: number ;
72
+ //请求并发
73
+ InstanceConcurrencyConfig ?: {
74
+ DynamicEnabled ?: boolean
75
+ MaxConcurrency ?: number
76
+ }
70
77
}
71
78
72
79
export interface TriggerType {
@@ -236,6 +243,16 @@ export interface ScfCreateFunctionInputs {
236
243
237
244
protocolType ?: string ;
238
245
protocolParams ?: ProtocolParams ;
246
+
247
+ //sd应用类型
248
+ sFType ?: string
249
+ //gpu并发数,默认是0
250
+ gpuReservedQuota ?: number
251
+ //请求并发配置
252
+ instanceConcurrencyConfig ?:{
253
+ dynamicEnabled ?: boolean
254
+ maxConcurrency ?: number
255
+ }
239
256
}
240
257
241
258
export interface ScfUpdateAliasTrafficInputs {
Original file line number Diff line number Diff line change @@ -83,6 +83,23 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => {
83
83
functionInputs . ProtocolParams = protocolParams ;
84
84
}
85
85
}
86
+
87
+ }
88
+
89
+ //sd应用类型
90
+ if ( inputs ?. sFType ) {
91
+ functionInputs . SFType = inputs ?. sFType ;
92
+ }
93
+ //sd gpu并发数
94
+ if ( inputs ?. gpuReservedQuota ) {
95
+ functionInputs . GpuReservedQuota = inputs ?. gpuReservedQuota ;
96
+ }
97
+ //请求并发
98
+ if ( inputs ?. instanceConcurrencyConfig ) {
99
+ functionInputs . InstanceConcurrencyConfig = {
100
+ DynamicEnabled : inputs ?. instanceConcurrencyConfig ?. dynamicEnabled ,
101
+ MaxConcurrency : inputs ?. instanceConcurrencyConfig ?. maxConcurrency
102
+ }
86
103
}
87
104
88
105
if ( inputs . role ) {
You can’t perform that action at this time.
0 commit comments