This release has two breaking changes:Documentation Index
Fetch the complete documentation index at: https://docs.output.ai/llms.txt
Use this file to discover all available pages before exploring further.
- The
llm:call_costhook event was renamed tocost:llm:request; - The
costobject in events and LLM responses has a new format.
Migration steps
Event renaming
Update each hook that listens forllm:call_cost to use cost:llm:request:
Before
After
Cost payload
On the@outputai/llm module, the cost field in both the .generateText() response and the cost:llm:request event has a new format:
Before
After
components used to be an object; it is now an array.