IonWarpbotcommented 15 min agoIonWarp Review — PR #412
const res = await client.chat.completions.create({ model, messages });const stream = await client.chat.completions.create({ model, messages, stream: true });for await (const chunk of stream) yield chunk.choices[0]?.delta?.content ?? "";
Streaming turned usage off · Cost Review
The switch to streaming never asks for usage (`stream_options: { include_usage: true }`), so every chat turn now writes 0 tokens and $0 to the ledger the budget reads. Request usage and record the final chunk's usage with the served model.