Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const formattedDate = `${month}-${day}-${year}`;

async function fetchDataDaily(date: string) {
const response = await fetch(
`https://delta.jan.ai/openai-api-collection-test/${date}.json`
`https://delta.jan.ai/openai-api-collection-test/${date}.json`,
);
if (!response.ok) {
return {};
Expand Down Expand Up @@ -120,7 +120,7 @@ const config: Config = {
try {
let refs = {};
const response = await fetch(
`https://huggingface.co/api/models/${model.name}/refs`
`https://huggingface.co/api/models/${model.name}/refs`,
);
refs = await response.json();
fetchedModels.push({
Expand Down Expand Up @@ -153,7 +153,7 @@ const config: Config = {
path: `/models/${page.name.replace("cortexso/", "")}`,
// the page component used to render the page
component: require.resolve(
"./src/components/MyModelPage/index.tsx"
"./src/components/MyModelPage/index.tsx",
),
// will only match for exactly matching paths
exact: true,
Expand All @@ -164,7 +164,7 @@ const config: Config = {
// in this case, we merge the page data together with the loaded content data
customData: { ...page },
});
})
}),
);
} catch (error) {
console.error("Error fetching models:", error);
Expand Down Expand Up @@ -201,7 +201,7 @@ const config: Config = {
changelog.sort(
(a, b) =>
new Date(b.frontmatter.date).getTime() -
new Date(a.frontmatter.date).getTime()
new Date(a.frontmatter.date).getTime(),
);
setGlobalData(changelog);
},
Expand All @@ -214,7 +214,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchRepoInfo = await fetch(
"https://api.github.com/repos/janhq/cortex.cpp"
"https://api.github.com/repos/janhq/cortex.cpp",
);
const repoInfo = await fetchRepoInfo.json();
setGlobalData(repoInfo);
Expand All @@ -227,7 +227,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchLatestRelease = await fetch(
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest"
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest",
);
const latestRelease = await fetchLatestRelease.json();
setGlobalData(latestRelease);
Expand All @@ -240,7 +240,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchTotalCoverage = await fetch(
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json"
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json",
);
const totalCoverage = await fetchTotalCoverage.json();
setGlobalData(totalCoverage);
Expand Down Expand Up @@ -275,7 +275,7 @@ const config: Config = {
route: "/api-reference",
configuration: {
spec: {
url: "/openapi/jan.json",
url: "/openapi/cortex.json",
},
hideModels: true,
},
Expand Down
2 changes: 1 addition & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ find_package(SQLiteCpp REQUIRED)
find_package(eventpp CONFIG REQUIRED)

## Generating openapi json
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/../docs/static/openapi/jan.json" JSON_CONTENT)
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/../docs/static/openapi/cortex.json" JSON_CONTENT)
string(LENGTH "${JSON_CONTENT}" CONTENT_LENGTH)
message("Content length: ${CONTENT_LENGTH}")

Expand Down
Loading