From 738207de5083bc013deb121c3e3f5ae8a35d9cc4 Mon Sep 17 00:00:00 2001 From: Fuegovic <32828263+fuegovic@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:35:05 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8Fdocs:=20remove=20"copilot-gpt?= =?UTF-8?q?4-service"=20(#2491)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removed "copilot-gpt4-service", the repository has been disabled --- docs/install/configuration/ai_setup.md | 66 -------------------------- 1 file changed, 66 deletions(-) diff --git a/docs/install/configuration/ai_setup.md b/docs/install/configuration/ai_setup.md index 230d42f877..c957e680f2 100644 --- a/docs/install/configuration/ai_setup.md +++ b/docs/install/configuration/ai_setup.md @@ -292,72 +292,6 @@ I recommend using Microsoft Edge for this:

-### copilot-gpt4-service -For this setup, an additional docker container will need to be setup. - -***It is necessary to obtain your token first.*** - -Follow these instructions provided at **[copilot-gpt4-service#obtaining-token](https://github.com/aaamoon/copilot-gpt4-service#obtaining-copilot-token)** and keep your token for use within the service. Additionally, more detailed instructions for setting copilot-gpt4-service are available at the [GitHub repo](https://github.com/aaamoon/copilot-gpt4-service). - -It is *not* recommended to use the copilot token obtained directly, instead use the `SUPER_TOKEN` variable. (You can generate your own `SUPER_TOKEN` with the OpenSSL command `openssl rand -hex 16` and set the `ENABLE_SUPER_TOKEN` variable to `true`) - -1. Once your Docker environment is ready and your tokens are generated, proceed with this Docker run command to start the service: - ``` - docker run -d \ - --name copilot-gpt4-service \ - -e HOST=0.0.0.0 \ - -e COPILOT_TOKEN=ghp_xxxxxxx \ - -e SUPER_TOKEN=your_super_token \ - -e ENABLE_SUPER_TOKEN=true \ - --restart always \ - -p 8080:8080 \ - aaamoon/copilot-gpt4-service:latest - ``` - -2. For Docker Compose users, use the equivalent yaml configuration provided below: - ```yaml - version: '3.8' - services: - copilot-gpt4-service: - image: aaamoon/copilot-gpt4-service:latest - environment: - - HOST=0.0.0.0 - - COPILOT_TOKEN=ghp_xxxxxxx # Default GitHub Copilot Token, if this item is set, the Token carried with the request will be ignored. Default is empty. - - SUPER_TOKEN=your_super_token # Super Token is a user-defined standalone token that can access COPILOT_TOKEN above. This allows you to share the service without exposing your COPILOT_TOKEN. Multiple tokens are separated by commas. Default is empty. - - ENABLE_SUPER_TOKEN=true # Whether to enable SUPER_TOKEN, default is false. If false, but COPILOT_TOKEN is not empty, COPILOT_TOKEN will be used without any authentication for all requests. - ports: - - 8080:8080 - restart: unless-stopped - container_name: copilot-gpt4-service - ``` - -3. After setting up the Docker container for `copilot-gpt4-service`, you can add it to your `librechat.yaml` configuration. Here is an example configuration: - ```yaml - version: 1.0.1 - cache: true - endpoints: - custom: - - name: "OpenAI via Copilot" - apiKey: "your_super_token" - baseURL: "http://[copilotgpt4service_host_ip]:8080/v1" - models: - default: ["gpt-4", "gpt-3.5-turbo"] # *See Notes - titleConvo: true - titleModel: "gpt-3.5-turbo" - summarize: true - summaryModel: "gpt-3.5-turbo" - forcePrompt: false - modelDisplayLabel: "OpenAI" - dropParams: ["user"] - ``` - Replace `your_super_token` with the token you obtained following the instructions highlighted above and `[copilotgpt4service_host_ip]` with the IP of your Docker host. *****See Notes*** - - Restart Librechat after adding the needed configuration, and select `OpenAI via Copilot` to start using! - - >Notes: - > - *Only allowed models are `gpt-4` and `gpt-3.5-turbo`. - > - **Advanced users can add this to their existing docker-compose file/existing docker network and avoid having to expose port 8080 (or any port) to the copilot-gpt4-service container. - --- ## Conclusion