Skip to content

Commit

Permalink
chore(xsai): update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Feb 5, 2025
1 parent 057ee3f commit 635282e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
4 changes: 3 additions & 1 deletion packages/xsai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"@xsai/shared-chat": "workspace:",
"@xsai/stream-object": "workspace:",
"@xsai/stream-text": "workspace:",
"@xsai/tool": "workspace:"
"@xsai/tool": "workspace:",
"@xsai/utils-chat": "workspace:",
"@xsai/utils-stream": "workspace:"
}
}
23 changes: 13 additions & 10 deletions packages/xsai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import '@xsai/tool/generate-text'

// @xsai/providers
export * as providers from './providers'
export { embed, embedMany, type EmbedManyOptions, type EmbedManyResult, type EmbedOptions, type EmbedResponseUsage, type EmbedResult } from '@xsai/embed'
export { generateObject, type GenerateObjectOptions, type GenerateObjectResult } from '@xsai/generate-object'
export { generateSpeech, type GenerateSpeechOptions } from '@xsai/generate-speech'
export { generateText, type GenerateTextOptions, type GenerateTextResponse, type GenerateTextResult, type StepResult } from '@xsai/generate-text'
export { generateTranscription, type GenerateTranscriptionOptions, type GenerateTranscriptionResult } from '@xsai/generate-transcription'
export { listModels, type ListModelsOptions, type ListModelsResponse, type Model, retrieveModel, type RetrieveModelOptions } from '@xsai/model'
// shared chat utils

// xsai core utils
export * from '@xsai/embed'
export * from '@xsai/generate-object'
export * from '@xsai/generate-speech'
export * from '@xsai/generate-text'
export * from '@xsai/generate-transcription'
export * from '@xsai/model'
export * from '@xsai/shared-chat'
export { streamObject, type StreamObjectOptions, type StreamObjectResult } from '@xsai/stream-object'
export { type ChunkResult, streamText, type StreamTextOptions, type StreamTextResult } from '@xsai/stream-text'
export { tool, type ToolOptions, type ToolResult } from '@xsai/tool'
export * from '@xsai/stream-object'
export * from '@xsai/stream-text'
export * from '@xsai/tool'
export * from '@xsai/utils-chat'
export * from '@xsai/utils-stream'
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 635282e

Please sign in to comment.