Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

docs: settings and api server

Louisd8fa777b74bc
diff --git a/docs/src/pages/docs/desktop/_assets/hardware-settings.png b/docs/src/pages/docs/desktop/_assets/hardware-settings.png
new file mode 100644
index 000000000..28cbc65b2
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/hardware-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/local-api-server.png b/docs/src/pages/docs/desktop/_assets/local-api-server.png
new file mode 100644
index 000000000..c4f0e11e2
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/local-api-server.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/server-configuration.png b/docs/src/pages/docs/desktop/_assets/server-configuration.png
new file mode 100644
index 000000000..77626cfad
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/server-configuration.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png b/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png
new file mode 100644
index 000000000..1b53fea02
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/server-troubleshooting.png differ
diff --git a/docs/src/pages/docs/desktop/api-server.mdx b/docs/src/pages/docs/desktop/api-server.mdx
index 7f4e9874e..72353adff 100644
--- a/docs/src/pages/docs/desktop/api-server.mdx
+++ b/docs/src/pages/docs/desktop/api-server.mdx
@@ -23,15 +23,14 @@ import { Callout, Steps } from 'nextra/components'
Jan provides a built-in, OpenAI-compatible API server that runs entirely on your computer, powered by `llama.cpp`. Use it as a drop-in replacement for cloud APIs to build private, offline-capable AI applications.
-![Jan's Local API Server Settings UI](./_assets/api-server-ui.png)
+![Jan's Local API Server Settings UI](./_assets/local-api-server.png)
## Quick Start
<Steps>
### Start the Server
1. Navigate to **Settings** > **Local API Server**.
-2. Enter a custom **API Key** (e.g., `secret-key-123`). This is required for all requests.
-3. Click **Start Server**.
+2. Click **Start Server**.
The server is ready when the logs show `JAN API listening at http://127.0.0.1:1337`.
@@ -51,7 +50,9 @@ curl http://127.0.0.1:1337/v1/chat/completions \
## Server Configuration
-These settings control the network accessibility and basic behavior of your local server.
+These settings control the network accessibility and basic behavior of your local server. Access them via the **Configuration** button in the top right.
+
+![Server Configuration](./_assets/server-configuration.png)
### Server Host
The network address the server listens on.
diff --git a/docs/src/pages/docs/desktop/server-troubleshooting.mdx b/docs/src/pages/docs/desktop/server-troubleshooting.mdx
index dd51aed99..85353ca1d 100644
--- a/docs/src/pages/docs/desktop/server-troubleshooting.mdx
+++ b/docs/src/pages/docs/desktop/server-troubleshooting.mdx
@@ -27,10 +27,9 @@ When Jan isn't working properly, error logs help identify the problem. Here's ho
### Quick Access to Logs
**In Jan Interface:**
-1. Look for **System Monitor** in the footer
-2. Click **App Log**
+Go to **Settings** > **General** > **App Logs** and click **Open Logs**.
-![App log](./_assets/trouble-shooting-02.png)
+![App log](./_assets/server-troubleshooting.png)
**Via Terminal:**
```bash
@@ -171,7 +170,7 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
2. Turn on **GPU Acceleration**
3. Check **System Monitor** (footer) to verify GPU is detected
-![Hardware](./_assets/trouble-shooting-01.png)
+![Hardware](./_assets/hardware-settings.png)
### Step 3: Verify Configuration