From 03adfaa7ae8759ceeb0dcfdc271fed6778940899 Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Tue, 12 Nov 2024 08:11:40 +0800 Subject: [PATCH] docs(models-http-api): add jan.ai chat example (#3404) --- .../docs/references/models-http-api/jan.ai.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 website/docs/references/models-http-api/jan.ai.md diff --git a/website/docs/references/models-http-api/jan.ai.md b/website/docs/references/models-http-api/jan.ai.md new file mode 100644 index 000000000000..d610b3c38e48 --- /dev/null +++ b/website/docs/references/models-http-api/jan.ai.md @@ -0,0 +1,20 @@ +# Jan AI + +[Jan](https://jan.ai/) is an open-source alternative to ChatGPT that runs entirely offline on your computer. + +Jan can run a server that provides an OpenAI-equivalent chat API at https://localhost:1337, +allowing us to use the OpenAI kinds for chat. +To use the Jan Server, you need to enable it in the Jan App's `Local API Server` UI. + +However, Jan does not yet provide API support for completion and embeddings. + +Below is an example for chat: + +```toml title="~/.tabby/config.toml" +# Chat model +[model.chat.http] +kind = "openai/chat" +model_name = "your_model" +api_endpoint = "http://localhost:1337/v1" +api_key = "" +``` \ No newline at end of file