636 B
636 B
markup, title, description, import
| markup | title | description | import | ||||
|---|---|---|---|---|---|---|---|
| occlusion | llm create + collect offline | Factory create + collect alias; no network. |
|
main
model = > llm.create
fixture = "data: {"choices":[{"delta":{"content":"Hi"}}]}\n\ndata: {"choices":[{"delta":{"content":"!"}}]}\n\ndata: [DONE]\n"
events = > net.openai_sse_parse text=fixture
answer = > llm.collect events=events
print text=
answeralias = > llm.stream_result events=eventsprint text=alias