generated from template/apps-template
update
This commit is contained in:
11
backend/test/extract.ts
Normal file
11
backend/test/extract.ts
Normal 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);
|
||||
Reference in New Issue
Block a user