@xsai/stream-text 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChatCompletionOptions, FinishReason } from '@xsai/shared-chat-completion';
1
+ import { ChatCompletionOptions, FinishReason } from '@xsai/shared-chat';
2
2
 
3
3
  interface StreamTextOptions extends ChatCompletionOptions {
4
4
  /** if you want to disable stream, use `@xsai/generate-text` */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { chatCompletion } from '@xsai/shared-chat-completion';
1
+ import { chatCompletion } from '@xsai/shared-chat';
2
2
 
3
3
  const dataHeaderPrefix = "data: ";
4
4
  const dataErrorPrefix = `{"error":`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsai/stream-text",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "author": "Moeru AI",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@xsai/shared-chat-completion": ""
33
+ "@xsai/shared-chat": ""
34
34
  },
35
35
  "devDependencies": {
36
36
  "@xsai/providers": "",