From e03d1f588065f36fde7883af94b4255fa0c350d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:24:36 +0800 Subject: [PATCH] chore(xsai): update exports --- packages/xsai/package.json | 2 ++ packages/xsai/src/index.ts | 3 +++ pnpm-lock.yaml | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/packages/xsai/package.json b/packages/xsai/package.json index 65315d3..ce15e1f 100644 --- a/packages/xsai/package.json +++ b/packages/xsai/package.json @@ -38,8 +38,10 @@ "@xsai/generate-object": "workspace:", "@xsai/generate-speech": "workspace:", "@xsai/generate-text": "workspace:", + "@xsai/generate-transcription": "workspace:", "@xsai/model": "workspace:", "@xsai/providers": "workspace:", + "@xsai/shared-chat": "workspace:", "@xsai/stream-text": "workspace:", "@xsai/tool": "workspace:" } diff --git a/packages/xsai/src/index.ts b/packages/xsai/src/index.ts index b12df13..a91b9e7 100644 --- a/packages/xsai/src/index.ts +++ b/packages/xsai/src/index.ts @@ -7,6 +7,9 @@ export { embed, embedMany } from '@xsai/embed' export { generateObject } from '@xsai/generate-object' export { generateSpeech } from '@xsai/generate-speech' export { generateText } from '@xsai/generate-text' +export { generateTranscription } from '@xsai/generate-transcription' export { listModels, retrieveModel } from '@xsai/model' +// shared chat utils +export * from '@xsai/shared-chat' export { streamText } from '@xsai/stream-text' export { tool } from '@xsai/tool' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 683d335..1259570 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -301,12 +301,18 @@ importers: '@xsai/generate-text': specifier: 'workspace:' version: link:../generate-text + '@xsai/generate-transcription': + specifier: 'workspace:' + version: link:../generate-transcription '@xsai/model': specifier: 'workspace:' version: link:../model '@xsai/providers': specifier: 'workspace:' version: link:../providers + '@xsai/shared-chat': + specifier: 'workspace:' + version: link:../shared-chat '@xsai/stream-text': specifier: 'workspace:' version: link:../stream-text