Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 476 Bytes

File metadata and controls

15 lines (11 loc) · 476 Bytes

model-basic

A keyless script demo for @inbrowser/model contracts and usage helpers plus the event-stream helpers from @inbrowser/model/local.

It demonstrates the offline parts of the model contract:

  • split <think>...</think> output into reasoning and answer events
  • parse model-emitted <tool_call>...</tool_call> envelopes
  • normalize and sum provider usage accounting
bun run --cwd examples/model-basic start
bun run --cwd examples/model-basic test