From 388786cc95b87761acd0bfddfe25173f065c5d49 Mon Sep 17 00:00:00 2001 From: Daniel <101145494+dan-jan@users.noreply.github.com> Date: Sun, 19 Nov 2023 23:17:04 +0800 Subject: [PATCH] Add server page --- docs/docs/docs/server.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/docs/docs/server.md b/docs/docs/docs/server.md index 36f697cb2..05a715932 100644 --- a/docs/docs/docs/server.md +++ b/docs/docs/docs/server.md @@ -1,3 +1,20 @@ --- title: API Server ---- \ No newline at end of file +--- + +:::warning + +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 runs on port `1337` by default, but this can be changed in Settings. + +Check out the [API Reference](/api-reference) for more information on the API endpoints. + +``` +curl https://localhost:1337/v1/chat/completions + +``` \ No newline at end of file