Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/content/docs/packages/utils/reasoning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { PkgSizeBadge } from '@/components/pkg-size-badge'
npm i @xsai/utils-reasoning
```

<Callout type="warn">
This package has been deprecated.
</Callout>

## Examples

### extractReasoning
Expand Down
1 change: 1 addition & 0 deletions packages/utils-reasoning/src/extract-reasoning-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface ExtractReasoningStreamResult {
textStream: ReadableStream<string>
}

/** @deprecated use `streamText().reasoningTextStream` instead. */
Comment thread
kwaa marked this conversation as resolved.
export const extractReasoningStream = (stream: ReadableStream<string>, options: ExtractReasoningOptions = {
tagName: 'think',
}): ExtractReasoningStreamResult => {
Expand Down
1 change: 1 addition & 0 deletions packages/utils-reasoning/src/extract-reasoning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface ExtractReasoningResult {
text: string
}

/** @deprecated use `(await generateText()).reasoningText` instead. */
export const extractReasoning = (text: string, options: ExtractReasoningOptions = {
tagName: 'think',
}) => {
Expand Down
1 change: 1 addition & 0 deletions packages/utils-reasoning/test/qwen3.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable sonarjs/deprecation */
// import { generateText } from '@xsai/generate-text'
// import { streamText } from '@xsai/stream-text'
import { describe, expect, it } from 'vitest'
Expand Down
Loading