|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "# Jan Computer Control\n", |
| 8 | + "\n", |
| 9 | + "We love Jan as an A.I. inference server. It also has a chat interface to chat with LLMs. But did you know that you can use this same chat interface as a computer control interface? Read on!\n", |
| 10 | + "\n", |
| 11 | + "[View on YouTube](https://www.youtube.com/watch?v=1l3B0AzbbjQ)" |
| 12 | + ] |
| 13 | + }, |
| 14 | + { |
| 15 | + "cell_type": "markdown", |
| 16 | + "metadata": {}, |
| 17 | + "source": [ |
| 18 | + "Install and set up Jan\n", |
| 19 | + "\n", |
| 20 | + "https://jan.ai/" |
| 21 | + ] |
| 22 | + }, |
| 23 | + { |
| 24 | + "cell_type": "markdown", |
| 25 | + "metadata": {}, |
| 26 | + "source": [ |
| 27 | + "Install Open Interpreter\n", |
| 28 | + "\n", |
| 29 | + "https://docs.openinterpreter.com/getting-started/introduction" |
| 30 | + ] |
| 31 | + }, |
| 32 | + { |
| 33 | + "cell_type": "markdown", |
| 34 | + "metadata": {}, |
| 35 | + "source": [ |
| 36 | + "Run the Open Interpreter OpenAI-compatible server.\n", |
| 37 | + "\n", |
| 38 | + "`interpreter --server`\n", |
| 39 | + "\n", |
| 40 | + "Add flags to set the `--model`, `--context_window`, or any other [setting](https://docs.openinterpreter.com/settings/all-settings) you want" |
| 41 | + ] |
| 42 | + }, |
| 43 | + { |
| 44 | + "cell_type": "markdown", |
| 45 | + "metadata": {}, |
| 46 | + "source": [ |
| 47 | + "Edit Jan's OpenAI settings to point to the local server.\n", |
| 48 | + "\n", |
| 49 | + "Settings => OpenAI => Chat Competion endpoint `http://127.0.0.1:8000/openai/chat/completions`.\n", |
| 50 | + "\n", |
| 51 | + "Jan has a requirement to set a dummy OpenAI API key." |
| 52 | + ] |
| 53 | + }, |
| 54 | + { |
| 55 | + "cell_type": "markdown", |
| 56 | + "metadata": {}, |
| 57 | + "source": [ |
| 58 | + "Go to the chat window to start a new thread.\n", |
| 59 | + "\n", |
| 60 | + "Set `Model` to an OpenAI model. \n", |
| 61 | + "\n", |
| 62 | + "Start controlling your computer!" |
| 63 | + ] |
| 64 | + } |
| 65 | + ], |
| 66 | + "metadata": { |
| 67 | + "language_info": { |
| 68 | + "name": "python" |
| 69 | + } |
| 70 | + }, |
| 71 | + "nbformat": 4, |
| 72 | + "nbformat_minor": 2 |
| 73 | +} |
0 commit comments