alitajs / alita

A React framework based on umi.
https://alitajs.com
MIT License
788 stars 85 forks source link

feat: add aigc #627

Closed xiaohuoni closed 8 months ago

xiaohuoni commented 8 months ago

增加环境变量 AZURE_OPENAI_API_KEY=xxxx(.env.local)

增加配置

  azure: {
    apiVersion: '2023-07-01-preview',
    model: 'alita4',
    resource: 'alita',
  },

增加两个命令 call 和 why ,一个用于日常闲聊,一个当 umi 服务挂的时候或者程序出错的时候,可以使用。

也可以通过其他插件接入使用 ,api.onIntlAzure 实验性功能,文档暂不提供,感兴趣的可以研究体验下。

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 05770756b5a20b8ca6a38a8650564b89252d1216

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------- | ----- | | @alita/plugin-azure | Patch | | alita | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
alita-alita ✅ Ready (Inspect) Visit Preview Dec 12, 2023 2:47am