Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
457 B
457 B
title, description, import
| title | description | import | ||||
|---|---|---|---|---|---|---|
| llm stream_result offline | No network — SSE fixture via net.openai_sse_parse + llm.stream_result |
|
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