mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-15 08:55:05 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user