Merge branch 'docs/assistants-api-reference' of https://github.com/janhq/jan into docs/assistants-api-reference

This commit is contained in:
hieu-jan 2023-12-08 04:05:11 +09:00
commit f7a240273b
43 changed files with 87 additions and 64 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: About Jan title: About Jan
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
Jan believes in the need for an open source AI ecosystem, and are building the infra and tooling to allow open source AIs to compete on a level playing field with proprietary ones. Jan believes in the need for an open source AI ecosystem, and are building the infra and tooling to allow open source AIs to compete on a level playing field with proprietary ones.

View File

@ -1,7 +1,7 @@
--- ---
title: Community title: Community
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
- [ ] Social media links - [ ] Social media links

View File

@ -1,5 +1,5 @@
--- ---
title: Build an Assistant title: Build an Assistant
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---

View File

@ -1,7 +1,7 @@
--- ---
title: Extending Jan title: Extending Jan
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Overview ## Overview

View File

@ -1,5 +1,5 @@
--- ---
title: Model Management title: Model Management
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: Build a Module title: Build a Module
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---

View File

@ -1,7 +1,7 @@
--- ---
title: API Server title: API Server
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::warning :::warning

View File

@ -1,5 +1,5 @@
--- ---
title: Build a Theme title: Build a Theme
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: Build a Tool title: Build a Tool
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---

View File

@ -1,7 +1,7 @@
--- ---
title: Engineering title: Engineering
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Connecting to Rigs ## Connecting to Rigs

View File

@ -2,7 +2,7 @@
title: Onboarding Checklist title: Onboarding Checklist
slug: /handbook slug: /handbook
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
# Welcome # Welcome

View File

@ -1,7 +1,7 @@
--- ---
title: Hardware Examples title: Hardware Examples
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Add your own example ## Add your own example

View File

@ -1,7 +1,7 @@
--- ---
title: From Source title: From Source
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
# Install Jan from Source # Install Jan from Source

View File

@ -1,7 +1,7 @@
--- ---
title: Linux title: Linux
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
# Installing Jan on Linux # Installing Jan on Linux

View File

@ -1,7 +1,7 @@
--- ---
title: Mac title: Mac
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
# Installing Jan on MacOS # Installing Jan on MacOS

View File

@ -1,7 +1,7 @@
--- ---
title: Overview title: Overview
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
Getting up and running open-source AI models on your own computer with Jan is quick and easy. Jan is lightweight and can run on a variety of hardware and platform versions. Specific requirements tailored to your platform are outlined below. Getting up and running open-source AI models on your own computer with Jan is quick and easy. Jan is lightweight and can run on a variety of hardware and platform versions. Specific requirements tailored to your platform are outlined below.

View File

@ -1,7 +1,7 @@
--- ---
title: Windows title: Windows
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
# Installing Jan on Windows # Installing Jan on Windows

View File

@ -1,7 +1,7 @@
--- ---
title: How Jan Works title: How Jan Works
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
- Local Filesystem - Local Filesystem

View File

@ -2,7 +2,7 @@
title: Introduction title: Introduction
slug: /docs slug: /docs
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
Jan is a ChatGPT-alternative that runs on your own computer, with a [local API server](/api). Jan is a ChatGPT-alternative that runs on your own computer, with a [local API server](/api).

View File

@ -1,7 +1,7 @@
--- ---
title: Quickstart title: Quickstart
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
- Write in the style of comics, explanation - Write in the style of comics, explanation

View File

@ -2,7 +2,7 @@
title: Architecture title: Architecture
slug: /specs slug: /specs
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::warning :::warning

View File

@ -2,7 +2,7 @@
title: "Assistants" title: "Assistants"
slug: /specs/assistants slug: /specs/assistants
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::caution :::caution

View File

@ -2,7 +2,7 @@
title: Chats title: Chats
slug: /specs/chats slug: /specs/chats
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::caution :::caution

View File

@ -2,7 +2,7 @@
title: "Files" title: "Files"
slug: /specs/files slug: /specs/files
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::warning :::warning

View File

@ -2,7 +2,7 @@
title: "Fine-tuning" title: "Fine-tuning"
slug: /specs/finetuning slug: /specs/finetuning
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
Todo: @hiro Todo: @hiro

View File

@ -2,7 +2,7 @@
title: Messages title: Messages
slug: /specs/messages slug: /specs/messages
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::caution :::caution

View File

@ -2,7 +2,7 @@
title: Models title: Models
slug: /specs/models slug: /specs/models
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::caution :::caution

View File

@ -2,7 +2,7 @@
title: Prompts title: Prompts
slug: /specs/prompts slug: /specs/prompts
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
- [ ] /prompts folder - [ ] /prompts folder

View File

@ -2,7 +2,7 @@
title: Threads title: Threads
slug: /specs/threads slug: /specs/threads
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::caution :::caution

View File

@ -1,7 +1,7 @@
--- ---
title: File-based Approach title: File-based Approach
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::warning :::warning

View File

@ -1,7 +1,7 @@
--- ---
title: Jan (Assistant) title: Jan (Assistant)
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Jan: a "global" assistant ## Jan: a "global" assistant

View File

@ -2,7 +2,7 @@
title: Chat title: Chat
slug: /specs/chat slug: /specs/chat
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Overview ## Overview

View File

@ -2,7 +2,7 @@
title: Hub title: Hub
slug: /specs/hub slug: /specs/hub
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Overview ## Overview

View File

@ -2,7 +2,7 @@
title: Settings title: Settings
slug: /specs/settings slug: /specs/settings
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Overview ## Overview

View File

@ -2,7 +2,7 @@
title: System Monitor title: System Monitor
slug: /specs/system-monitor slug: /specs/system-monitor
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
## Overview ## Overview

View File

@ -1,7 +1,7 @@
--- ---
title: User Interface title: User Interface
description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.
keywords: [Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee] keywords: [Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ]
--- ---
:::warning :::warning

View File

@ -126,7 +126,7 @@ const config = {
// Docs: https://docusaurus.io/docs/api/themes/configuration // Docs: https://docusaurus.io/docs/api/themes/configuration
themeConfig: { themeConfig: {
image: "img/jan-social-card.png", image: "img/og-image.png",
// Only for react live // Only for react live
liveCodeBlock: { liveCodeBlock: {
playgroundPosition: "bottom", playgroundPosition: "bottom",
@ -142,36 +142,42 @@ const config = {
{ {
name: "description", name: "description",
content: content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.", "Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
}, },
{ {
name: "keywords", name: "keywords",
content: content:
"Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee", "Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ",
}, },
{ name: "robots", content: "index, follow" }, { name: "robots", content: "index, follow" },
{ property: "og:title", content: "Run your own AI | Jan" }, {
property: "og:title",
content: "Jan | Open-source ChatGPT Alternative",
},
{ {
property: "og:description", property: "og:description",
content: content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.", "Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
}, },
{ {
property: "og:image", property: "og:image",
content: "https://jan.ai/img/jan-social-card.png", content: "https://jan.ai/img/og-image.png",
}, },
{ property: "og:type", content: "website" }, { property: "og:type", content: "website" },
{ property: "twitter:card", content: "summary_large_image" }, { property: "twitter:card", content: "summary_large_image" },
{ property: "twitter:site", content: "@janhq_" }, { property: "twitter:site", content: "@janhq_" },
{ property: "twitter:title", content: "Run your own AI | Jan" }, {
property: "twitter:title",
content: "Jan | Open-source ChatGPT Alternative",
},
{ {
property: "twitter:description", property: "twitter:description",
content: content:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.", "Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
}, },
{ {
property: "twitter:image", property: "twitter:image",
content: "https://jan.ai/img/jan-social-card.png", content: "https://jan.ai/img/og-image.png",
}, },
], ],
headTags: [ headTags: [
@ -194,9 +200,9 @@ const config = {
"@type": "localAI", "@type": "localAI",
name: "Jan", name: "Jan",
description: description:
"Jan is a ChatGPT-alternative that runs on your own computer, with a local API server.", "Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable.",
keywords: keywords:
"Jan, ChatGPT alternative, on-premises AI, local API server, local AI, llm, conversational AI, no-subscription fee", "Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model ",
applicationCategory: "BusinessApplication", applicationCategory: "BusinessApplication",
operatingSystem: "Multiple", operatingSystem: "Multiple",
url: "https://jan.ai/", url: "https://jan.ai/",

View File

@ -38,6 +38,7 @@
"react-icons": "^4.11.0", "react-icons": "^4.11.0",
"redocusaurus": "^2.0.0", "redocusaurus": "^2.0.0",
"sass": "^1.69.3", "sass": "^1.69.3",
"tailwind-merge": "^2.1.0",
"tailwindcss": "^3.3.3" "tailwindcss": "^3.3.3"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,10 +1,11 @@
import React, { useState, useEffect } from "react"; import React, { useState, useEffect } from "react";
import axios from "axios"; import axios from "axios";
import { FaWindows, FaApple, FaLinux } from "react-icons/fa"; import { FaWindows, FaApple, FaLinux } from "react-icons/fa";
import { twMerge } from "tailwind-merge";
const systemsTemplate = [ const systemsTemplate = [
{ {
name: "Mac Silicon", name: "Mac M1, M2, M3",
logo: FaApple, logo: FaApple,
fileFormat: "{appname}-mac-arm64-{tag}.dmg", fileFormat: "{appname}-mac-arm64-{tag}.dmg",
comingSoon: false, comingSoon: false,
@ -110,14 +111,15 @@ export default function DownloadApp() {
<a <a
key={i} key={i}
href={system.href} href={system.href}
className={`inline-flex m-2 px-4 py-2 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-gray-400 dark:border-gray-700 text-black dark:text-white bg-neutral-50 min-w-[150px] dark:bg-[#18181B], ${ className={twMerge(
system.comingSoon && "pointer-events-none " "inline-flex m-2 px-4 py-2 rounded-lg text-lg font-semibold cursor-pointer justify-center items-center space-x-2 border border-gray-400 dark:border-gray-700 text-black dark:text-black bg-neutral-50 min-w-[150px] dark:bg-[#18181B]",
}`} system.comingSoon && "pointer-events-none"
)}
> >
<system.logo /> <system.logo />
<span>{system.name}</span> <span>{system.name}</span>
{system.comingSoon && ( {system.comingSoon && (
<span className="bg-gray-300 dark:bg-gray-700 py-0.5 px-2 inline-block ml-2 rounded-md text-sm mt-1"> <span className="bg-gray-300 py-0.5 px-2 inline-block ml-2 rounded-md text-sm mt-1">
Coming Soon Coming Soon
</span> </span>
)} )}

View File

@ -25,8 +25,8 @@ export default function Home() {
<> <>
<Banner /> <Banner />
<Layout <Layout
title={`${siteConfig.tagline}`} title="Open-source ChatGPT Alternative"
description="Jan is a ChatGPT-alternative that runs on your own computer, with a local API server." description="Jan runs 100% offline on your computer, utilizes open-source AI models, prioritizes privacy, and is highly customizable."
> >
<main> <main>
<div className="grid grid-cols-1 lg:grid-cols-12 -mt-1 gap-8 items-center relative min-h-[calc(100vh-96px)] "> <div className="grid grid-cols-1 lg:grid-cols-12 -mt-1 gap-8 items-center relative min-h-[calc(100vh-96px)] ">
@ -94,7 +94,7 @@ export default function Home() {
</div> </div>
<div <div
className="dark:bg-[#09090B]/20 border-t border-zinc-200 dark:border-gray-800 py-16" className="dark:bg-[#09090B]/20 border-t border-zinc-200 dark:border-gray-800 py-10 lg:py-16"
id="download-section" id="download-section"
> >
<div className="container"> <div className="container">
@ -104,7 +104,7 @@ export default function Home() {
</div> </div>
</div> </div>
<div className="dark:bg-[#09090B]/20 pb-36"> <div className="dark:bg-[#09090B]/20 pb-10 lg:pb-36">
<div className="container h-full "> <div className="container h-full ">
<div className="w-full lg:w-3/4 mx-auto relative rounded-xl py-10"> <div className="w-full lg:w-3/4 mx-auto relative rounded-xl py-10">
<img <img
@ -146,7 +146,7 @@ export default function Home() {
</div> </div>
</div> </div>
<div className="dark:bg-[#27272A] bg-zinc-100 pt-20 pb-10"> <div className="dark:bg-[#27272A] bg-zinc-100 pt-10 lg:pt-20 pb-10">
<div className="container"> <div className="container">
<div className="w-full lg:w-3/4 mx-auto relative"> <div className="w-full lg:w-3/4 mx-auto relative">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center"> <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center">
@ -183,7 +183,7 @@ export default function Home() {
</div> </div>
</div> </div>
<div className="dark:bg-[#27272A] bg-zinc-100 pb-20 pt-10"> <div className="dark:bg-[#27272A] bg-zinc-100 lg:pb-20 pb-10 pt-10">
<div className="container"> <div className="container">
<div className="w-full lg:w-3/4 mx-auto relative "> <div className="w-full lg:w-3/4 mx-auto relative ">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center"> <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center">
@ -226,7 +226,7 @@ export default function Home() {
</div> </div>
<div className="dark:bg-[#09090B]/20"> <div className="dark:bg-[#09090B]/20">
<div className="container py-32"> <div className="container py-12 lg:py-32">
<div className="w-full xl:w-10/12 mx-auto relative"> <div className="w-full xl:w-10/12 mx-auto relative">
<div className="text-center"> <div className="text-center">
<div className="card-link-bg dark:card-link-bg-dark px-4 py-2 inline-flex rounded-xl items-center space-x-4"> <div className="card-link-bg dark:card-link-bg-dark px-4 py-2 inline-flex rounded-xl items-center space-x-4">
@ -247,7 +247,7 @@ export default function Home() {
/> />
</div> </div>
<div className="mt-8"> <div className="mt-8">
<h6 className="text-4xl font-semibold"> <h6 className="text-3xl lg:text-4xl font-semibold">
Offline and Local First Offline and Local First
</h6> </h6>
<p className="mt-2 leading-relaxed text-zinc-600 dark:text-zinc-400"> <p className="mt-2 leading-relaxed text-zinc-600 dark:text-zinc-400">
@ -256,10 +256,10 @@ export default function Home() {
exportable, and can be deleted at any time. exportable, and can be deleted at any time.
</p> </p>
<div className="grid grid-cols-12 mt-20 text-left gap-8"> <div className="grid grid-cols-12 mt-10 lg:mt-20 text-left gap-8">
<div className="col-span-full lg:col-span-4"> <div className="col-span-full lg:col-span-4">
<div className="dark:bg-[#27272A] bg-zinc-100 rounded-xl p-8 min-h-[450px]"> <div className="dark:bg-[#27272A] bg-zinc-100 rounded-xl p-8 min-h-[450px]">
<h6 className="text-4xl font-semibold"> <h6 className="text-3xl lg:text-4xl font-semibold">
OpenAI Compatible OpenAI Compatible
</h6> </h6>
<p className="mt-4 leading-relaxed text-zinc-600 dark:text-zinc-400"> <p className="mt-4 leading-relaxed text-zinc-600 dark:text-zinc-400">

View File

Before

Width:  |  Height:  |  Size: 265 KiB

After

Width:  |  Height:  |  Size: 265 KiB

View File

@ -1156,6 +1156,13 @@
dependencies: dependencies:
regenerator-runtime "^0.14.0" regenerator-runtime "^0.14.0"
"@babel/runtime@^7.23.5":
version "7.23.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.5.tgz#11edb98f8aeec529b82b211028177679144242db"
integrity sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w==
dependencies:
regenerator-runtime "^0.14.0"
"@babel/template@^7.22.15": "@babel/template@^7.22.15":
version "7.22.15" version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38"
@ -9457,6 +9464,13 @@ swagger2openapi@^7.0.6:
yaml "^1.10.0" yaml "^1.10.0"
yargs "^17.0.1" yargs "^17.0.1"
tailwind-merge@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-2.1.0.tgz#541b407e0ec255651e92571d96b685e48f01999c"
integrity sha512-l11VvI4nSwW7MtLSLYT4ldidDEUwQAMWuSHk7l4zcXZDgnCRa0V3OdCwFfM7DCzakVXMNRwAeje9maFFXT71dQ==
dependencies:
"@babel/runtime" "^7.23.5"
tailwindcss-animate@^1.0.7: tailwindcss-animate@^1.0.7:
version "1.0.7" version "1.0.7"
resolved "https://registry.yarnpkg.com/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz#318b692c4c42676cc9e67b19b78775742388bef4" resolved "https://registry.yarnpkg.com/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz#318b692c4c42676cc9e67b19b78775742388bef4"

View File

@ -42,8 +42,8 @@ const marked = new Marked(
// Make a copy paste // Make a copy paste
return ` return `
<pre class="hljs"> <pre class="hljs">
<code class="language-${encodeURIComponent(lang ?? '')}">${ <code class="language-${lang ?? ''}">${
escaped ? code : encodeURIComponent(code) escaped ? code : decodeURIComponent(code)
}</code> }</code>
</pre>` </pre>`
}, },