Skip to content

Commit ac60d6d

Browse files
committed
feat: add model definition typing
1 parent 53deacf commit ac60d6d

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)