Closed xiaohuoni closed 9 months ago
Latest commit: 254efaa26c027ce50054b1190601c815b5bdd8ef
The changes in this PR will be included in the next version bump.
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
alita-alita | 🔄 Building (Inspect) | Visit Preview | Nov 22, 2023 9:39am |
``ts import { IApi } from 'umi'; import type { IOnIntlAzure, IAzureSend } from '@alita/plugin-azure';
let _send: IAzureSend; export default (api: IApi & { onIntlAzure: IOnIntlAzure }) => { api.onIntlAzure(async ({ send }) => { _send = send; }); api.onDevCompileDone(async () => { const result = await _send('你好'); console.log(result.choices[0]!.message?.content); }); };