Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 4174347

Browse files
committed
chore: update openapi reference name jan->cortex
1 parent c434ac2 commit 4174347

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/docusaurus.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const formattedDate = `${month}-${day}-${year}`;
2020

2121
async 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/jan.json",
278+
url: "/openapi/cortex.json",
279279
},
280280
hideModels: true,
281281
},

engine/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ find_package(SQLiteCpp REQUIRED)
8181
find_package(eventpp CONFIG REQUIRED)
8282

8383
## Generating openapi json
84-
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/../docs/static/openapi/jan.json" JSON_CONTENT)
84+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/../docs/static/openapi/cortex.json" JSON_CONTENT)
8585
string(LENGTH "${JSON_CONTENT}" CONTENT_LENGTH)
8686
message("Content length: ${CONTENT_LENGTH}")
8787

0 commit comments

Comments
 (0)