`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>
460 B
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