Skip to content

Commit 874acdc

Browse files
authored
Merge pull request #378 from wechat-miniprogram/feat-cloud-extend
feat: add model definition typing
2 parents 156c6fb + ac60d6d commit 874acdc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

types/wx/lib.wx.cloud.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,14 @@ declare namespace ICloud {
241241
interface ICloudExtendServices {
242242
AI: ICloudAI
243243
}
244+
interface ICloudAIModelDefinition {
245+
modelName: string
246+
modelPath: string
247+
extractPath: string
248+
reasoningPath?: string
249+
}
244250
interface ICloudAI {
245-
createModel: (modelName: string) => ICloudAIModel
251+
createModel: (modelName: string | ICloudAIModelDefinition) => ICloudAIModel
246252
bot: ICloudBot
247253
}
248254
interface ICloudAICallbackOptions {

0 commit comments

Comments
 (0)