improvement(usage): update usage limit in realtime, standardize token output object across providers (#2553)

* improvement(usage-limit): update usage in real time, fix token output object

* updated tokenBreakdown to tokens, standardized input/output/total token object type across providers

* update remaining references

* ack PR comment

* remove singleton query client instance from hooks, leave only in zustand
This commit is contained in:
Waleed
2025-12-23 13:04:47 -08:00
committed by GitHub
parent 641ac58017
commit 4e09c389e8
51 changed files with 368 additions and 388 deletions

View File

@@ -129,7 +129,7 @@ describe('EdgeManager', () => {
const output = {
result: { data: 'test' },
content: 'Hello world',
tokens: { prompt: 10, completion: 20, total: 30 },
tokens: { input: 10, output: 20, total: 30 },
}
const readyNodes = edgeManager.processOutgoingEdges(sourceNode, output)