mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: remove useless code
This commit is contained in:
parent
e31f363917
commit
d8265ba1d2
1 changed files with 8 additions and 8 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { remark } from 'remark'
|
||||
import stripMarkdown from 'strip-markdown'
|
||||
export function markdownToText (markdown) {
|
||||
return remark()
|
||||
.use(stripMarkdown)
|
||||
.processSync(markdown ?? '')
|
||||
.toString()
|
||||
}
|
||||
// import { remark } from 'remark'
|
||||
// import stripMarkdown from 'strip-markdown'
|
||||
// export function markdownToText (markdown) {
|
||||
// return remark()
|
||||
// .use(stripMarkdown)
|
||||
// .processSync(markdown ?? '')
|
||||
// .toString()
|
||||
// }
|
||||
|
||||
export async function upsertMessage (message) {
|
||||
await redis.set(`CHATGPT:MESSAGE:${message.id}`, JSON.stringify(message))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue