Files
marqdo/tests/ext/llm-stream-offline.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

460 B


title: llm stream_result offline description: No network — SSE fixture via net.openai_sse_parse + llm.stream_result import llm:ext/ai/llm.mq.md import net:lib/net.mq.md

main

*fixture = "data: {"choices":[{"delta":{"content":"Hi"}}]}\n\ndata: {"choices":[{"delta":{"content":"!"}}]}\n\ndata: [DONE]\n" *

*events = > net.openai_sse_parse text=fixture * *answer = > llm.stream_result events=events *

print text=answer