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 11{
22 "name" : " tencent-component-toolkit" ,
3- "version" : " 2.24.2 " ,
3+ "version" : " 2.24.3 " ,
44 "description" : " Tencent component toolkit" ,
55 "main" : " lib/index.js" ,
66 "types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -67,6 +67,13 @@ export interface BaseFunctionConfig {
6767 ProtocolParams ?: ProtocolParams ;
6868 NodeType ?: string ;
6969 NodeSpec ?: string ;
70+ SFType ?: string ;
71+ GpuReservedQuota ?: number ;
72+ //请求并发
73+ InstanceConcurrencyConfig ?: {
74+ DynamicEnabled ?: boolean
75+ MaxConcurrency ?: number
76+ }
7077}
7178
7279export interface TriggerType {
@@ -236,6 +243,16 @@ export interface ScfCreateFunctionInputs {
236243
237244 protocolType ?: string ;
238245 protocolParams ?: ProtocolParams ;
246+
247+ //sd应用类型
248+ sFType ?: string
249+ //gpu并发数,默认是0
250+ gpuReservedQuota ?: number
251+ //请求并发配置
252+ instanceConcurrencyConfig ?:{
253+ dynamicEnabled ?: boolean
254+ maxConcurrency ?: number
255+ }
239256}
240257
241258export interface ScfUpdateAliasTrafficInputs {
Original file line number Diff line number Diff line change @@ -83,6 +83,23 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => {
8383 functionInputs . ProtocolParams = protocolParams ;
8484 }
8585 }
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+ }
86103 }
87104
88105 if ( inputs . role ) {
You can’t perform that action at this time.
0 commit comments