yetone
bf7ced3156
qoder 0.2.4: Qoder's token usage is read — it comes in a chunk of its own after the finish, with no choices, and the stream was read only up to the finish, so every request through the plugin was counted as 0 tokens (found testing a real qmodel account: prompt_tokens 0 on every reply). events() now reads to [DONE], keeps the finish reason, and takes the usage, cached and reasoning tokens included, from whichever chunk carries it, as the built-in did (qoder.go). stream.test.mjs, a reply shaped as a real one, fails on the old code and passes. Tried with a real Qoder account in a sandbox magpie: chat, streamed chat and an Anthropic tool call all report their tokens (40 in / 120 out, 107 reasoning; 298 / 86 with the tool).
2026-10-03 16:10:04 +08:00
..
2026-10-03 12:07:22 +08:00
2026-10-03 00:00:23 +08:00
2026-10-03 08:39:01 +08:00
2026-10-03 00:00:23 +08:00
2026-10-03 14:56:46 +08:00
2026-10-03 12:07:22 +08:00
2026-10-03 12:07:22 +08:00
2026-10-03 12:07:22 +08:00
2026-10-03 11:39:06 +08:00
qoder 0.2.4: Qoder's token usage is read — it comes in a chunk of its own after the finish, with no choices, and the stream was read only up to the finish, so every request through the plugin was counted as 0 tokens (found testing a real qmodel account: prompt_tokens 0 on every reply). events() now reads to [DONE], keeps the finish reason, and takes the usage, cached and reasoning tokens included, from whichever chunk carries it, as the built-in did (qoder.go). stream.test.mjs, a reply shaped as a real one, fails on the old code and passes. Tried with a real Qoder account in a sandbox magpie: chat, streamed chat and an Anthropic tool call all report their tokens (40 in / 120 out, 107 reasoning; 298 / 86 with the tool).
2026-10-03 16:10:04 +08:00
2026-10-03 14:34:31 +08:00
2026-10-03 12:07:23 +08:00
2026-10-02 23:13:06 +08:00
2026-10-03 00:00:23 +08:00