@@ -453,7 +453,7 @@ <h2>Tensors</h2>
453453}
454454
455455async function loadInfo ( ) {
456- const info = await fetchJSON ( "/ api/info" ) ;
456+ const info = await fetchJSON ( "api/info" ) ;
457457 infoCards . innerHTML = "" ;
458458 modelTitle . textContent = "Model overview" ;
459459 const pathBadge = document . createElement ( "span" ) ;
@@ -499,7 +499,7 @@ <h2>Tensors</h2>
499499}
500500
501501async function loadKv ( ) {
502- const entries = await fetchJSON ( "/ api/kv" ) ;
502+ const entries = await fetchJSON ( "api/kv" ) ;
503503 kvBody . innerHTML = "" ;
504504 entries . forEach ( entry => kvBody . appendChild ( renderKvRow ( entry ) ) ) ;
505505}
@@ -656,7 +656,7 @@ <h2>Tensors</h2>
656656 const gridSize = Math . max ( 1 , tokenizerState . gridSize ) ;
657657 const requestedOffset = Math . max ( 0 , Math . floor ( Number ( offset ) ) || 0 ) ;
658658 const limit = gridSize * gridSize ;
659- const data = await fetchJSON ( `/ api/tokenizer?offset=${ requestedOffset } &limit=${ limit } ` ) ;
659+ const data = await fetchJSON ( `api/tokenizer?offset=${ requestedOffset } &limit=${ limit } ` ) ;
660660 tokenizerContent . innerHTML = "" ;
661661 if ( ! data . hasTokenizer ) {
662662 tokenizerContent . textContent = "Tokenizer metadata not found in this model." ;
@@ -762,7 +762,7 @@ <h2>Tensors</h2>
762762}
763763
764764async function loadTensors ( ) {
765- tensorData = await fetchJSON ( "/ api/tensors" ) ;
765+ tensorData = await fetchJSON ( "api/tensors" ) ;
766766 tensorBody . innerHTML = "" ;
767767 tensorData . forEach ( tensor => tensorBody . appendChild ( renderTensorRow ( tensor ) ) ) ;
768768}
@@ -1013,7 +1013,7 @@ <h2>Tensors</h2>
10131013 }
10141014
10151015 try {
1016- const res = await fetch ( `/ api/tensors/${ encodeURIComponent ( tensor . name ) } /raw?${ params . toString ( ) } ` , {
1016+ const res = await fetch ( `api/tensors/${ encodeURIComponent ( tensor . name ) } /raw?${ params . toString ( ) } ` , {
10171017 signal : controller . signal ,
10181018 } ) ;
10191019 if ( ! res . ok ) {
0 commit comments