OPENAI_MODEL to a model your project can use.
response.output_text as usual. Brello reads operational metadata such as the model, token usage, and provider request ID.
Supported methods
Tool calls through these methods are counted as part of their provider request. Brello leaves the tool arguments, tool results, and embedding vectors in the original provider response.
Track streaming usage
Brello observes the stream as your application consumes it. Responses usage comes from the terminal response event. For Chat Completions, addstream_options.include_usage to receive the final usage chunk:
usage: null. Consume the original SDK iterator or use its stream helper methods. On raw streams, tee() and toReadableStream() may bypass Brello’s observation.
.withResponse() keeps the parsed result and headers available. .asResponse() leaves the body unread and records usage as unknown. Brello estimates costs server-side. Embeddings report input tokens and zero output tokens. Cached input and reasoning output are already included in their respective totals.