Commit f32e0ff8 by gru-agent[bot] Committed by GitHub

Update dashboard data test to reflect correct structure and parameters. (#5010)

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
parent cc5e46c3
......@@ -254,22 +254,39 @@ describe('channel api', () => {
data: [
{
timestamp: 1000,
summary: []
summary: [
{
model: 'gpt-3.5',
total_tokens: 100,
request_count: 10,
total_price: 0.002
}
]
}
]
}
});
const result = await getDashboardV2({
channel: 1,
model: 'gpt-3.5',
start_timestamp: 0,
end_timestamp: 1000,
timezone: 'UTC',
timespan: 'minute'
});
expect(result).toEqual([
{
timestamp: 1000,
summary: []
summary: [
{
model: 'gpt-3.5',
total_tokens: 100,
request_count: 10,
total_price: 0.002
}
]
}
]);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment