From 86626fc84f66bed51502750bc5ab279a29b52ab5 Mon Sep 17 00:00:00 2001 From: 0xSage <69952136+0xSage@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:22:28 +0800 Subject: [PATCH] docs: Update 01-server.md --- docs/docs/guides/05-using-server/01-server.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/docs/guides/05-using-server/01-server.md b/docs/docs/guides/05-using-server/01-server.md index aa5bf8d3a..b774ae284 100644 --- a/docs/docs/guides/05-using-server/01-server.md +++ b/docs/docs/guides/05-using-server/01-server.md @@ -20,13 +20,14 @@ This page is under construction. ::: -Jan ships with a built-in API server, that can be used as a drop-in replacement for OpenAI's API. +Jan ships with a built-in API server, that can be used as a drop-in, local replacement for OpenAI's API. -Jan runs on port `1337` by default, but this can be changed in Settings. +Jan runs on port `1337` by default, but this can (soon) be changed in Settings. -Check out the [API Reference](/api-reference) for more information on the API endpoints. +1. Go to Settings > Advanced > Enable API Server -``` -curl http://localhost:1337/v1/chat/completions +2. Go to http://localhost:1337/docs for API docs. -``` +3. In terminal, simply CURL... + +Note: Some UI states may be broken when in Server Mode.