@relayplane/proxy 1.5.16 → 1.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone-proxy.js +3 -3
- package/package.json +1 -1
package/dist/standalone-proxy.js
CHANGED
|
@@ -1855,13 +1855,13 @@ async function load(){
|
|
|
1855
1855
|
]);
|
|
1856
1856
|
$('ver').textContent='v'+health.version;
|
|
1857
1857
|
$('uptime').textContent=dur(health.uptime);
|
|
1858
|
-
|
|
1858
|
+
const total=stats.summary?.totalEvents||0;
|
|
1859
|
+
$('totalReq').textContent=total;
|
|
1859
1860
|
$('totalCost').textContent='$'+fmt(stats.summary?.totalCostUsd??0,4);
|
|
1860
1861
|
$('savings').textContent=(sav.percentage??0)+'%';
|
|
1861
1862
|
$('avgLat').textContent=(stats.summary?.avgLatencyMs??0)+'ms';
|
|
1862
|
-
const total=stats.summary?.totalEvents||1;
|
|
1863
1863
|
$('models').innerHTML=(stats.byModel||[]).map(m=>
|
|
1864
|
-
'<tr><td>'+m.model+'</td><td>'+m.count+'</td><td>$'+fmt(m.costUsd,4)+'</td><td>'+fmt(m.count/total*100,1)+'%</td></tr>'
|
|
1864
|
+
'<tr><td>'+m.model+'</td><td>'+m.count+'</td><td>$'+fmt(m.costUsd,4)+'</td><td>'+fmt(total>0?m.count/total*100:0,1)+'%</td></tr>'
|
|
1865
1865
|
).join('')||'<tr><td colspan=4 style="color:#64748b">No data yet</td></tr>';
|
|
1866
1866
|
function ttCls(t){const m={code_generation:'tt-code',analysis:'tt-analysis',summarization:'tt-summarization',question_answering:'tt-qa'};return m[t]||'tt-general'}
|
|
1867
1867
|
function cxCls(c){const m={simple:'cx-simple',moderate:'cx-moderate',complex:'cx-complex'};return m[c]||'cx-simple'}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relayplane/proxy",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.18",
|
|
4
4
|
"description": "Open source cost intelligence proxy for AI agents. Cut LLM costs ~80% with smart model routing. Dashboard, policy engine, 11 providers. MIT licensed.",
|
|
5
5
|
"homepage": "https://relayplane.com",
|
|
6
6
|
"repository": {
|