diff --git a/docs/src/containers/DownloadButton/index.js b/docs/src/containers/DownloadButton/index.js index a8b13ae2d..83d7914f2 100644 --- a/docs/src/containers/DownloadButton/index.js +++ b/docs/src/containers/DownloadButton/index.js @@ -7,17 +7,17 @@ import axios from "axios"; const systemsTemplate = [ { name: "Download for Mac", - logo: require("@site/static/img/apple-logo-white.png").default, + logo: require("@site/static/img/logos/apple-logo-white.png").default, fileFormat: "{appname}-mac-arm64.zip", }, { name: "Download for Windows", - logo: require("@site/static/img/windows-logo-white.png").default, + logo: require("@site/static/img/logos/windows-logo-white.png").default, fileFormat: "{appname}-win-amd64.zip", }, { name: "Download for Linux", - logo: require("@site/static/img/linux-logo-white.png").default, + logo: require("@site/static/img/logos/linux-logo-white.png").default, fileFormat: "{appname}-linux-amd64.zip", }, ]; diff --git a/docs/src/containers/GithubButton/index.js b/docs/src/containers/GithubButton/index.js new file mode 100644 index 000000000..642b0b148 --- /dev/null +++ b/docs/src/containers/GithubButton/index.js @@ -0,0 +1,16 @@ +import React from "react"; +import { FaGithub } from "react-icons/fa"; + +export default function GithubButtob() { + return ( + + + + + View on Github + + ); +} diff --git a/docs/src/containers/Homepage/Architecture/index.js b/docs/src/containers/Homepage/Architecture/index.js index ae32db0d0..3e44f8d73 100644 --- a/docs/src/containers/Homepage/Architecture/index.js +++ b/docs/src/containers/Homepage/Architecture/index.js @@ -49,9 +49,19 @@ export default function Architecture() {
LLMs
+ Logo llamacpp

Llama.cpp

+ Logo nvdia

TensorRT-LLM

Coming Soon @@ -62,6 +72,11 @@ export default function Architecture() {

Speech
+ Logo whispercpp

Whisper.cpp

Coming Soon @@ -71,6 +86,11 @@ export default function Architecture() {

Vision
+ Logo stable-diffusion

StableDiffusion

Coming Soon diff --git a/docs/src/containers/Homepage/OpenAI/index.js b/docs/src/containers/Homepage/OpenAI/index.js index 898b7cd96..d59185438 100644 --- a/docs/src/containers/Homepage/OpenAI/index.js +++ b/docs/src/containers/Homepage/OpenAI/index.js @@ -11,10 +11,10 @@ import ThemedImage from "@theme/ThemedImage"; export default function OpenAI() { const clipboard = useClipboard({ timeout: 200 }); - const codeStringOpenAI = `curl http://localhost:3928/inferences/llamacpp/chat_completion + const codeStringNitro = `curl http://localhost:3928/inferences/llamacpp/chat_completion -H "Content-Type: application/json" -d '{ - "model": "gpt-3.5-turbo", + "model": "/path/to/your/model.gguf", "messages": [ { "role": "system", @@ -27,7 +27,7 @@ export default function OpenAI() { ] }'`; - const codeStringNitro = `curl https://api.openai.com/v1/chat/completions + const codeStringOpenAI = `curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $OPENAI_API_KEY" -d '{ @@ -53,15 +53,14 @@ export default function OpenAI() {

-
-
- +
+ Element Lines + Nitro
@@ -69,13 +68,15 @@ export default function OpenAI() { POST

- https://api.openai.com/v1/chat/completions + https://localhost:1337/llama.cpp/v1/chat/completions

- clipboard.copy("https://api.openai.com/v1/chat/completions") + clipboard.copy( + "https://localhost:1337/llama.cpp/v1/chat/completions" + ) } > {clipboard.copied ? "Copied" : "Copy"} @@ -83,25 +84,26 @@ export default function OpenAI() {
- {codeStringOpenAI} + {codeStringNitro}
clipboard.copy(codeStringOpenAI)} + onClick={() => clipboard.copy(codeStringNitro)} > {clipboard.copied ? "Copied" : "Copy"}
-
-
- Element Lines +
+ - Nitro
@@ -109,15 +111,13 @@ export default function OpenAI() { POST

- https://localhost:1337/llama.cpp/v1/chat/completions + https://api.openai.com/v1/chat/completions

- clipboard.copy( - "https://localhost:1337/llama.cpp/v1/chat/completions" - ) + clipboard.copy("https://api.openai.com/v1/chat/completions") } > {clipboard.copied ? "Copied" : "Copy"} @@ -125,11 +125,11 @@ export default function OpenAI() {
- {codeStringNitro} + {codeStringOpenAI}
clipboard.copy(codeStringNitro)} + onClick={() => clipboard.copy(codeStringOpenAI)} > {clipboard.copied ? "Copied" : "Copy"}
diff --git a/docs/src/containers/Homepage/Statistic/index.js b/docs/src/containers/Homepage/Statistic/index.js index 9953bc115..4c99d8f02 100644 --- a/docs/src/containers/Homepage/Statistic/index.js +++ b/docs/src/containers/Homepage/Statistic/index.js @@ -13,7 +13,8 @@ export default function Statistic() {
-
+ {/* Temporary disabled */} + {/*
    {tabs.map((option, i) => { return ( @@ -30,7 +31,9 @@ export default function Statistic() { ); })}
-
+
*/} + +

Lightweight

{lightweightTabActive @@ -48,12 +51,6 @@ export default function Statistic() { 3mb

-
-
Ollama
-
- 332mb -
-
Local AI @@ -62,6 +59,12 @@ export default function Statistic() { 193mb
+
+
Ollama
+
+ 332mb +
+
) : (
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 3b01b333f..be202c24b 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -4,7 +4,7 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; -import DownloadButton from "@site/src/containers/DownloadButton"; +import GithubButtob from "@site/src/containers/GithubButton"; import GetNitro from "@site/src/containers/Homepage/GetNitro"; import Statistic from "@site/src/containers/Homepage/Statistic"; @@ -46,7 +46,7 @@ export default function Home() {

- +
@@ -54,7 +54,7 @@ export default function Home() {
-
+
diff --git a/docs/static/img/favicon.ico b/docs/static/img/favicon.ico index 4f5ff1b4e..119b581ab 100644 Binary files a/docs/static/img/favicon.ico and b/docs/static/img/favicon.ico differ diff --git a/docs/static/img/apple-logo-white.png b/docs/static/img/logos/apple-logo-white.png similarity index 100% rename from docs/static/img/apple-logo-white.png rename to docs/static/img/logos/apple-logo-white.png diff --git a/docs/static/img/linux-logo-white.png b/docs/static/img/logos/linux-logo-white.png similarity index 100% rename from docs/static/img/linux-logo-white.png rename to docs/static/img/logos/linux-logo-white.png diff --git a/docs/static/img/logos/llamacpp.svg b/docs/static/img/logos/llamacpp.svg new file mode 100644 index 000000000..7bb1b5cdc --- /dev/null +++ b/docs/static/img/logos/llamacpp.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/logos/nvdia.svg b/docs/static/img/logos/nvdia.svg new file mode 100644 index 000000000..dab4af368 --- /dev/null +++ b/docs/static/img/logos/nvdia.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/logos/stable-diffusion.svg b/docs/static/img/logos/stable-diffusion.svg new file mode 100644 index 000000000..b93556e1e --- /dev/null +++ b/docs/static/img/logos/stable-diffusion.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/logos/whispercpp.svg b/docs/static/img/logos/whispercpp.svg new file mode 100644 index 000000000..9fdf58a3f --- /dev/null +++ b/docs/static/img/logos/whispercpp.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/static/img/windows-logo-white.png b/docs/static/img/logos/windows-logo-white.png similarity index 100% rename from docs/static/img/windows-logo-white.png rename to docs/static/img/logos/windows-logo-white.png