@@ -20,7 +20,7 @@ const formattedDate = `${month}-${day}-${year}`;
2020
2121async function fetchDataDaily ( date : string ) {
2222 const response = await fetch (
23- `https://delta.jan.ai/openai-api-collection-test/${ date } .json` ,
23+ `https://delta.jan.ai/openai-api-collection-test/${ date } .json`
2424 ) ;
2525 if ( ! response . ok ) {
2626 return { } ;
@@ -120,7 +120,7 @@ const config: Config = {
120120 try {
121121 let refs = { } ;
122122 const response = await fetch (
123- `https://huggingface.co/api/models/${ model . name } /refs` ,
123+ `https://huggingface.co/api/models/${ model . name } /refs`
124124 ) ;
125125 refs = await response . json ( ) ;
126126 fetchedModels . push ( {
@@ -153,7 +153,7 @@ const config: Config = {
153153 path : `/models/${ page . name . replace ( "cortexso/" , "" ) } ` ,
154154 // the page component used to render the page
155155 component : require . resolve (
156- "./src/components/MyModelPage/index.tsx" ,
156+ "./src/components/MyModelPage/index.tsx"
157157 ) ,
158158 // will only match for exactly matching paths
159159 exact : true ,
@@ -164,7 +164,7 @@ const config: Config = {
164164 // in this case, we merge the page data together with the loaded content data
165165 customData : { ...page } ,
166166 } ) ;
167- } ) ,
167+ } )
168168 ) ;
169169 } catch ( error ) {
170170 console . error ( "Error fetching models:" , error ) ;
@@ -201,7 +201,7 @@ const config: Config = {
201201 changelog . sort (
202202 ( a , b ) =>
203203 new Date ( b . frontmatter . date ) . getTime ( ) -
204- new Date ( a . frontmatter . date ) . getTime ( ) ,
204+ new Date ( a . frontmatter . date ) . getTime ( )
205205 ) ;
206206 setGlobalData ( changelog ) ;
207207 } ,
@@ -214,7 +214,7 @@ const config: Config = {
214214 async contentLoaded ( { content, actions } ) {
215215 const { setGlobalData } = actions ;
216216 const fetchRepoInfo = await fetch (
217- "https://api.github.com/repos/janhq/cortex.cpp" ,
217+ "https://api.github.com/repos/janhq/cortex.cpp"
218218 ) ;
219219 const repoInfo = await fetchRepoInfo . json ( ) ;
220220 setGlobalData ( repoInfo ) ;
@@ -227,7 +227,7 @@ const config: Config = {
227227 async contentLoaded ( { content, actions } ) {
228228 const { setGlobalData } = actions ;
229229 const fetchLatestRelease = await fetch (
230- "https://api.github.com/repos/janhq/cortex.cpp/releases/latest" ,
230+ "https://api.github.com/repos/janhq/cortex.cpp/releases/latest"
231231 ) ;
232232 const latestRelease = await fetchLatestRelease . json ( ) ;
233233 setGlobalData ( latestRelease ) ;
@@ -240,7 +240,7 @@ const config: Config = {
240240 async contentLoaded ( { content, actions } ) {
241241 const { setGlobalData } = actions ;
242242 const fetchTotalCoverage = await fetch (
243- "https://delta.jan.ai/openai-api-collection-test/total-coverage.json" ,
243+ "https://delta.jan.ai/openai-api-collection-test/total-coverage.json"
244244 ) ;
245245 const totalCoverage = await fetchTotalCoverage . json ( ) ;
246246 setGlobalData ( totalCoverage ) ;
@@ -275,7 +275,7 @@ const config: Config = {
275275 route : "/api-reference" ,
276276 configuration : {
277277 spec : {
278- url : "/openapi/cortex .json" ,
278+ url : "/openapi/jan .json" ,
279279 } ,
280280 hideModels : true ,
281281 } ,
@@ -410,6 +410,7 @@ const config: Config = {
410410 items : [
411411 { to : "/models" , label : "Models" , position : "left" } ,
412412 { to : "/changelog" , label : "Changelog" , position : "left" } ,
413+ { to : "/contact" , label : "Enterprise" , position : "left" } ,
413414 {
414415 type : "doc" ,
415416 position : "right" ,
0 commit comments