Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 `generateText().reasoningText` instead. */
Comment thread
kwaa marked this conversation as resolved.
Outdated
export const extractReasoning = (text: string, options: ExtractReasoningOptions = {
tagName: 'think',
}) => {
Expand Down
Loading