Merge pull request #1327 from janhq/0xSage-patch-2

docs: Update 01-server.md
This commit is contained in:
0xSage 2024-01-04 13:35:42 +08:00 committed by GitHub
commit 48dff327f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.