This commit is contained in:
2025-12-04 14:22:53 +08:00
parent 37d78c742b
commit 7d8123a76d
12 changed files with 201 additions and 64 deletions

11
backend/test/extract.ts Normal file
View File

@@ -0,0 +1,11 @@
import { ai } from './common.ts';
import { AIUtils } from '@kevisual/ai';
const text = `\`\`\`\`json
{
"id": "7y6FHnPSzwhDJGyizsTQU",
"payload": {}
}
\`\`\``
const json = AIUtils.extractJsonFromMarkdown(text);