blocklet / media-kit

Simple image upload and sharing blocklet
Other
4 stars 0 forks source link

[ Discuss ] 应该判断 ai 是否可用,不可用应该禁用或隐藏 ai 入口 #114

Closed li-yechao closed 1 year ago

li-yechao commented 1 year ago

Discuss topic

image

判断方式:通过接口调用 ai-kit 的 status 接口

const res = await call({
  name: 'ai-kit',
  path: '/api/v1/sdk/status',
  data: {}
})

res // { available: boolean }

Screenshots

Useful Links

FireTable commented 1 year ago

done and verified in staging image