close
Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads3/wk
Publisheda year ago (0.1.1)

Parse think process of LLMs like DeepSeek-R1 and return the clean result and the think process.

Functions

f
parse(raw: OpenAI.Chat.ChatCompletionAssistantMessageParam | string): { content: string; think?: string; }

Parse think process of LLMs like DeepSeek-R1, QwQ, o3-mini and return the clean result and the think process.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@leaf/parse-think

Import symbol

import mod from "@leaf/parse-think";
or

Import directly with a jsr specifier

import mod from "jsr:@leaf/parse-think";