Giter Club home page Giter Club logo

openchat's Introduction

GitHub Contributors GitHub Last Commit GitHub Issues GitHub Pull Requests Github License Discord


🔥 OpenChat


OpenChat is an everyday user chatbot console that simplifies the utilization of large language models. With the advancements in AI, the installation and usage of these models have become overwhelming. OpenChat aims to address this challenge by providing a two-step setup process to create a comprehensive chatbot console. It serves as a central hub for managing multiple customized chatbots.

Currently, OpenChat supports GPT models, and we are actively working on incorporating various open-source drivers that can be activated with a single click.

Try it out:

You can try it out on openchat.so

Untitled.mp4

Chinese Video Tutorial:https://www.bilibili.com/video/BV1YX4y1H7oN

🏁 Current Features

  • Create unlimited local chatbots based on GPT-3 (and GPT-4 if available).
  • Customize your chatbots by providing PDF files, websites, and soon, integrations with platforms like Notion, Confluence, and Office 365.
  • Each chatbot has unlimited memory capacity, enabling seamless interaction with large files such as a 400-page PDF.
  • Embed chatbots as widgets on your website or internal company tools.
  • Use your entire codebase as a data source for your chatbots (pair programming mode).
  • And much more!

🛣️ Roadmap:

  • Create unlimited chatbots
  • Share chatbots via URL
  • Integrate chatbots on any website using JS (as a widget on the bottom right corner)
  • Support GPT-3 models
  • Support vector database to provide chatbots with larger memory
  • Accept websites as a data source
  • Accept PDF files as a data source
  • Support multiple data sources per chatbot
  • Support ingesting an entire codebase using GitHub API and use it as a data source with pair programming mode
  • Support pre-defined messages with a single click
  • Support offline vector DB
  • Re write the backend in Python Django
  • In progress: re-write the frontend in Next.js & TS
  • Support Slack integration (allow users to connect chatbots with their Slack workspaces)
  • Support Intercom integration (enable users to sync chat conversations with Intercom)
  • Support offline open-source models (e.g., Alpaca, LLM drivers)
  • Support Vertex AI and Palm as LLMs
  • Support Confluence, Notion, Office 365, and Google Workspace
  • Refactor the codebase to be API ready
  • Create a new UI designer for website-embedded chatbots
  • Support custom input fields for chatbots
  • Support offline usage: this is a major feature, OpenChat will operate fully offline with no internet connection at this stage (offline LLMs, offline Vector DBs)

We love hearing from you! Got any cool ideas or requests? We're all ears! So, if you have something in mind, give us a shout!

🚀 Getting Started

  • Make sure you have docker installed.

  • To begin, clone this Git repository:

git clone [email protected]:openchatai/OpenChat.git

Setting Up Your Environment

Note: Starting July, Qdrant is our Preferred Open-Source Vector Store 🚀 No initial Pinecone registration required. To begin, delve into the comprehensive guide: Using Qdrant, provided in the following section.

Before you begin, make sure to update the common.env file with the necessary keys:

OPENAI_API_KEY=# Retrieve from your [openai.com](https://www.openai.com) account
PINECONE_API_KEY=# Obtain from the "API Keys" tab in [pinecone](https://www.pinecone.io)
PINECONE_ENVIRONMENT=# Obtain after creating your index in [pinecone](https://www.pinecone.io)
VECTOR_STORE_INDEX_NAME=# Obtain after creating your index in [pinecone](https://www.pinecone.io)
STORE=pinecone

Using Azure OpenAI

  • USE_AZURE_OPENAI=true: Whether to use the Azure OpenAI API.
  • AZURE_OPENAI_API_KEY: Your Azure OpenAI API key.
  • AZURE_OPENAI_API_INSTANCE_NAME: The name of your Azure OpenAI API instance.
  • AZURE_OPENAI_API_COMPLETIONS_DEPLOYMENT_NAME: The name of the Azure OpenAI API deployment for completions.
  • AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME: The name of the Azure OpenAI API deployment for embeddings.

Using Qdrant

If you want to switch from Pinecone to Qdrant, you can set the following environment variables:

  • OPENAI_API_KEY= Your open ai key
  • QDRANT_URL: The URL of the Qdrant server.
  • STORE: The store to use to store embeddings. Can be qdrant or pinecone.

Optional [To modify the chat behaviour]

CHAIN_TYPE = The type of chain to use: conversation_retrieval | retrieval_qa

Using Prebuilt Images

If you're experiencing slow internet speeds or if Docker builds are taking a long time, consider using the prebuilt images for your respective architecture. Simply comment out the unnecessary image line in the docker-compose.yml file and uncomment the appropriate prebuilt image line.

Example:

# Mac environment
image: codebanesr/openchat_llm_server:edge_amd64

# Or, for Linux environment
image: codebanesr/openchat_llm_server:edge

Note: for pincone db, make sure that the dimension is equal to 1536

  • Navigate to the repository folder and run the following command (for MacOS or Linux):
make install

or in case you are using Windows

make.bat

Sure, here's the modified text with the additional line you requested:

Getting Started with the Openchat Django App

Start your adventure of contributing to and using OpenChat, now remade using the Python programming language. You can begin by following the instructions in the guide available here: OpenChat Python Guide.

Kindly be aware that the transition to the Python backend includes a significant alteration related to the Qdrant vector store, constituting a breaking change.

Once the installation is complete, you can access the OpenChat console at: http://localhost:8000

🚀 Unleash the Power of Native LLM

Discover the latest addition: llama2 support. Dive into this Guide to Harness LLAMA2 by Meta 📖🔮


Full documentation available here

🚀 Upgrade guide:

We do our best to not introduce breaking changes, so far, you only need to git pull and run make install whenever there is a new update.

❤️ Thanks:

  • To @mayooear for his work and tutorial on chatting with PDF files, we utilized a lot of his code in the LLM server.

License

This project is licensed under the MIT License.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Ikko Eltociear Ashimine
Ikko Eltociear Ashimine

🤔 💻
Joshua Sindy
Joshua Sindy

🐛
Erjan Kalybek
Erjan Kalybek

📖
WoahAI
WoahAI

🐛 💻
Tommy in Tongji
Tommy in Tongji

📖
codebane
codebane

💻 📖
lvalics
lvalics

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

openchat's People

Contributors

allcontributors[bot] avatar codebanesr avatar davidsmithdevops avatar dependabot[bot] avatar eltociear avatar erjanmx avatar gharbat avatar jsindy avatar lvalics avatar mrtrantuan avatar tommyzihao avatar tpmccallum avatar woahai321 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openchat's Issues

Doesn't seem to work at all?

I am using Ubuntu. I have cloned the repo, populated common.env with the details and ran make install.

The UI is running and I have created a number of bots using a website, a PDF and a public Github repo.

For each bot, once it has finished indexing the data, the bot answers that is it sorry but it needs more context. It cant answer anything at all.

I don't see any errors and no vectors created in Pinecone.

The docker logs from the openchat-llm-server pod shows 1 warning but no errors.

[WARN] Importing from 'langchain/document_loaders' is deprecated. Import from eg. 'langchain/document_loaders/fs/text' or 'langchain/document_loaders/web/cheerio' instead. See https://js.langchain.com/docs/getting-started/install#updating-from-0052 for upgrade instructions.

Any suggestions what I can do to get some answers from a bot?

Unable to Send Messages in Certain Browsers

Hello OpenChat team!

I'm currently experiencing an issue with OpenChat where I am unable to send messages when using certain browsers. I have tested this on the latest versions of Chrome, Firefox, and Safari, and the problem seems to occur specifically in Safari.

Steps to Reproduce:

  1. Open OpenChat in Safari browser.
  2. Log in to the application.
  3. Navigate to a chat room or direct message conversation.
  4. Type a message in the input field.
  5. Press the "Send" button or hit Enter to send the message.
  6. Expected Behavior:
  7. The message should be sent and appear in the chat room or conversation.

Actual Behavior:
After pressing the "Send" button or hitting Enter, the message does not get sent. It does not appear in the chat room or conversation. There are no error messages displayed.

Additional Information:

I have tested this issue on multiple devices running different versions of Safari and encountered the same problem consistently.
I have cleared the cache and cookies in Safari, but the issue persists.
Sending messages works fine in Chrome and Firefox. 8171
Possible Cause:
It appears that there might be a compatibility issue with the send message functionality specifically in Safari. It would be helpful to investigate if there are any browser-specific implementation discrepancies or known issues with the send message feature.

Method to Install on Windows (Tested and Working)

I'm fairly new to GitHub, so I am not sure of the proper way to have my updated code be checked and added to the main repo. Hoping someone can guide me. But for now, below is the edited make file I made and used to get this working on Windows 11.

#11 (comment)

Mac `make install error` (Bind for 0.0.0.0:6379 failed: port is already allocated make: *** [install] Error 1)

Steps to reproduce:

  1. Download repo
  2. Run Docker
  3. Add API Keys
  4. Run make install
❯ make install
=== Putting the services down (if already running) ===
docker-compose down --remove-orphans
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
make: *** [install] Error 1
❯ make install
=== Putting the services down (if already running) ===
docker-compose down --remove-orphans
=== Setting up Docker environment ===
=== This will overwrite your .env files, you still have some time to abort ===
=== Copying .env files ===
cp -n backend-server/.env.example backend-server/.env 2>/dev/null || true
cp -n common.env llm-server/.env 2>/dev/null || true
docker-compose build #--no-cache
[+] Building 47.3s (11/11) FINISHED                                                                                                                                                                                                                                    
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 473B                                                                                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/node:18                                                                                                                                                                                                        1.5s
 => [1/6] FROM docker.io/library/node:18@sha256:8cdf7234449f35e579f7491137807ddb3a089f028862f7ab69af437cc9f47ff1                                                                                                                                                  8.3s
 => => resolve docker.io/library/node:18@sha256:8cdf7234449f35e579f7491137807ddb3a089f028862f7ab69af437cc9f47ff1                                                                                                                                                  0.0s
 => => sha256:8cdf7234449f35e579f7491137807ddb3a089f028862f7ab69af437cc9f47ff1 1.21kB / 1.21kB                                                                                                                                                                    0.0s
 => => sha256:21830b9459ba3021657dccbb50204d1ec446012ad46fa46a24cb77e1f21264bd 2.00kB / 2.00kB                                                                                                                                                                    0.0s
 => => sha256:b04fae59f135dd79280e4a6da39408e04c6d703c617cbcb1c524dfe6f2962fe5 53.69MB / 53.69MB                                                                                                                                                                  1.0s
 => => sha256:518786b6252a49183be5ea11de846132127364b24781cd7fef451b9c138a36f3 7.25kB / 7.25kB                                                                                                                                                                    0.0s
 => => sha256:24cef00b9ad96bea3be667b285f4b22763747912cc8e4f2c3f145facb418d71d 15.75MB / 15.75MB                                                                                                                                                                  1.6s
 => => sha256:1db91b65282bc9aae941329f294e69b2671a6429827e8b357b950a2c112ef783 54.68MB / 54.68MB                                                                                                                                                                  2.6s
 => => sha256:54db3e52d959511497ff15bfc413d13a6743a3cb6a314971f1b31be790e2b347 189.78MB / 189.78MB                                                                                                                                                                4.5s
 => => extracting sha256:b04fae59f135dd79280e4a6da39408e04c6d703c617cbcb1c524dfe6f2962fe5                                                                                                                                                                         1.1s
 => => sha256:2b2d5a4c9703ad570d1274590098dc288d3038dbdad5741bc737abb2a6ac43b1 4.21kB / 4.21kB                                                                                                                                                                    1.8s
 => => sha256:baf63efb2a2285063bceca686b5f3446191f8927165177e82fa79a079586a00c 45.58MB / 45.58MB                                                                                                                                                                  3.8s
 => => extracting sha256:24cef00b9ad96bea3be667b285f4b22763747912cc8e4f2c3f145facb418d71d                                                                                                                                                                         0.3s
 => => sha256:1b48a5df7d530cdf6a7b622b745c8ca8a984d92f91eb89f25fb73de6bc5cdf3a 2.28MB / 2.28MB                                                                                                                                                                    2.7s
 => => extracting sha256:1db91b65282bc9aae941329f294e69b2671a6429827e8b357b950a2c112ef783                                                                                                                                                                         1.3s
 => => sha256:42d784b7d586eec0e369073056d0aaea28c8e477c97802b134f3dcdf2322c0a9 449B / 449B                                                                                                                                                                        2.9s
 => => extracting sha256:54db3e52d959511497ff15bfc413d13a6743a3cb6a314971f1b31be790e2b347                                                                                                                                                                         2.4s
 => => extracting sha256:2b2d5a4c9703ad570d1274590098dc288d3038dbdad5741bc737abb2a6ac43b1                                                                                                                                                                         0.0s
 => => extracting sha256:baf63efb2a2285063bceca686b5f3446191f8927165177e82fa79a079586a00c                                                                                                                                                                         0.8s
 => => extracting sha256:1b48a5df7d530cdf6a7b622b745c8ca8a984d92f91eb89f25fb73de6bc5cdf3a                                                                                                                                                                         0.1s
 => => extracting sha256:42d784b7d586eec0e369073056d0aaea28c8e477c97802b134f3dcdf2322c0a9                                                                                                                                                                         0.0s
 => [internal] load build context                                                                                                                                                                                                                                 0.0s
 => => transferring context: 214.52kB                                                                                                                                                                                                                             0.0s
 => [2/6] WORKDIR /usr/src/app                                                                                                                                                                                                                                    0.2s
 => [3/6] COPY package*.json yarn.lock ./                                                                                                                                                                                                                         0.0s
 => [4/6] COPY .env .env                                                                                                                                                                                                                                          0.0s
 => [5/6] RUN yarn install                                                                                                                                                                                                                                       31.7s
 => [6/6] COPY . .                                                                                                                                                                                                                                                0.0s
 => exporting to image                                                                                                                                                                                                                                            5.5s
 => => exporting layers                                                                                                                                                                                                                                           5.5s
 => => writing image sha256:c09e1e892c05835a81e9ba2cd173519d2d1a98bca3ff2b5c8d3abe6af7b276b0                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-llm-server                                                                                                                                                                                                            0.0s
[+] Building 28.9s (14/14) FINISHED                                                                                                                                                                                                                                    
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 961B                                                                                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/php:8.1-cli                                                                                                                                                                                                    1.3s
 => [internal] load build context                                                                                                                                                                                                                                 0.1s
 => => transferring context: 8.62MB                                                                                                                                                                                                                               0.1s
 => [1/9] FROM docker.io/library/php:8.1-cli@sha256:1e2526b7fa73a1da7ebffa6773aee9a79c6e05603110b496bb8737651e33230a                                                                                                                                              5.3s
 => => resolve docker.io/library/php:8.1-cli@sha256:1e2526b7fa73a1da7ebffa6773aee9a79c6e05603110b496bb8737651e33230a                                                                                                                                              0.0s
 => => sha256:bb545ee357b47ccf2d492f1d492ade64374a0fd821d59edd97904605ec1d21bd 271B / 271B                                                                                                                                                                        0.3s
 => => sha256:082044eb0664434956d83b1db0a61d8275c80d5952d902ca1711e31c62825775 2.20kB / 2.20kB                                                                                                                                                                    0.0s
 => => sha256:74780f41e660436e8172fefb2a76ba5d01db251a97028db0487354cab4d69240 224B / 224B                                                                                                                                                                        0.1s
 => => sha256:94b76edccccbe5393c86074de826eff56dfac107228b68f5fc81c4c79daa88ba 86.93MB / 86.93MB                                                                                                                                                                  3.2s
 => => sha256:1e2526b7fa73a1da7ebffa6773aee9a79c6e05603110b496bb8737651e33230a 1.86kB / 1.86kB                                                                                                                                                                    0.0s
 => => sha256:da3d7a661c5121186d6b60641120ad1cc6dd4d33b1ccfb75ff88140310e070ff 9.77kB / 9.77kB                                                                                                                                                                    0.0s
 => => sha256:d981f2c20c93e1c57a46cd87bc5b9a554be5323072a0d0ab4b354aabd237bbcf 30.05MB / 30.05MB                                                                                                                                                                  1.0s
 => => sha256:b15ac1e873d7d6f3c96c6fd14014a1aabb14ee9394128b29e417e7e8b2d9b15a 12.17MB / 12.17MB                                                                                                                                                                  1.0s
 => => extracting sha256:d981f2c20c93e1c57a46cd87bc5b9a554be5323072a0d0ab4b354aabd237bbcf                                                                                                                                                                         0.5s
 => => sha256:132ad3c58432d34fe909a6a79deae3ef91e2110f0d896008a43d32cb63a4bc52 490B / 490B                                                                                                                                                                        1.1s
 => => sha256:9b811869c1c3efe0a1083935a0443e20db38c1f16c56890792a50ebc89d3c5ab 33.91MB / 33.91MB                                                                                                                                                                  1.7s
 => => sha256:3ddf545ea9d4d240168de2df7a9823cabf69987ae12db888935b183df91fbe99 2.45kB / 2.45kB                                                                                                                                                                    1.2s
 => => sha256:75602aec6ef7eb85967c18e1ac55785b6fe87c62c5efe3a2e5284c0d50d47d51 247B / 247B                                                                                                                                                                        1.3s
 => => extracting sha256:74780f41e660436e8172fefb2a76ba5d01db251a97028db0487354cab4d69240                                                                                                                                                                         0.0s
 => => extracting sha256:94b76edccccbe5393c86074de826eff56dfac107228b68f5fc81c4c79daa88ba                                                                                                                                                                         1.1s
 => => extracting sha256:bb545ee357b47ccf2d492f1d492ade64374a0fd821d59edd97904605ec1d21bd                                                                                                                                                                         0.0s
 => => extracting sha256:b15ac1e873d7d6f3c96c6fd14014a1aabb14ee9394128b29e417e7e8b2d9b15a                                                                                                                                                                         0.1s
 => => extracting sha256:132ad3c58432d34fe909a6a79deae3ef91e2110f0d896008a43d32cb63a4bc52                                                                                                                                                                         0.0s
 => => extracting sha256:9b811869c1c3efe0a1083935a0443e20db38c1f16c56890792a50ebc89d3c5ab                                                                                                                                                                         0.5s
 => => extracting sha256:3ddf545ea9d4d240168de2df7a9823cabf69987ae12db888935b183df91fbe99                                                                                                                                                                         0.0s
 => => extracting sha256:75602aec6ef7eb85967c18e1ac55785b6fe87c62c5efe3a2e5284c0d50d47d51                                                                                                                                                                         0.0s
 => [2/9] RUN apt-get update && apt-get install -y     libpq-dev     libzip-dev     zip     unzip     git                                                                                                                                                         4.0s
 => [3/9] RUN docker-php-ext-install pdo pdo_mysql                                                                                                                                                                                                                9.4s
 => [4/9] WORKDIR /var/www/html                                                                                                                                                                                                                                   0.0s
 => [5/9] COPY . .                                                                                                                                                                                                                                                0.0s
 => [6/9] COPY .env .env                                                                                                                                                                                                                                          0.0s
 => [7/9] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer                                                                                                                                                1.7s
 => [8/9] RUN composer install --no-plugins --no-scripts                                                                                                                                                                                                          6.0s
 => [9/9] RUN php artisan key:generate                                                                                                                                                                                                                            0.4s
 => exporting to image                                                                                                                                                                                                                                            0.6s
 => => exporting layers                                                                                                                                                                                                                                           0.6s
 => => writing image sha256:41b2bf7b715d7c358560802f49c6efc8c080a310401d7bc086c0cf1b2a19b9cf                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-backend-server                                                                                                                                                                                                        0.0s
docker-compose up -d #--force-recreate
[+] Running 19/19
 ⠿ redis Pulled                                                                                                                                                                                                                                                   4.8s
   ⠿ 141796bfcf0d Pull complete                                                                                                                                                                                                                                   3.0s
   ⠿ e04371d693c0 Pull complete                                                                                                                                                                                                                                   3.1s
   ⠿ e9a750879aa6 Pull complete                                                                                                                                                                                                                                   3.2s
   ⠿ 9a350e3fcc54 Pull complete                                                                                                                                                                                                                                   3.4s
   ⠿ ac36e585cb97 Pull complete                                                                                                                                                                                                                                   3.5s
   ⠿ ac2676b39eae Pull complete                                                                                                                                                                                                                                   3.5s
 ⠿ mysql Pulled                                                                                                                                                                                                                                                   7.3s
   ⠿ e83e8f2e82cc Pull complete                                                                                                                                                                                                                                   2.3s
   ⠿ 0f23deb01b84 Pull complete                                                                                                                                                                                                                                   2.3s
   ⠿ f5bda3b184ea Pull complete                                                                                                                                                                                                                                   2.4s
   ⠿ ed17edbc6604 Pull complete                                                                                                                                                                                                                                   2.6s
   ⠿ 33a94a6acfa7 Pull complete                                                                                                                                                                                                                                   2.6s
   ⠿ f153bd2953e4 Pull complete                                                                                                                                                                                                                                   2.7s
   ⠿ ab532edfb813 Pull complete                                                                                                                                                                                                                                   3.5s
   ⠿ c76bdfe4f3d0 Pull complete                                                                                                                                                                                                                                   3.5s
   ⠿ 8a7ffe2f2551 Pull complete                                                                                                                                                                                                                                   6.0s
   ⠿ 857ada4fbbcc Pull complete                                                                                                                                                                                                                                   6.1s
   ⠿ b7c508404c3c Pull complete                                                                                                                                                                                                                                   6.1s
[+] Running 6/7
 ⠿ Network openchat_openchat_network    Created                                                                                                                                                                                                                   0.0s
 ⠿ Volume "openchat_shared_data"        Created                                                                                                                                                                                                                   0.0s
 ⠿ Volume "openchat_database"           Created                                                                                                                                                                                                                   0.0s
 ⠿ Container openchat-redis-1           Starting                                                                                                                                                                                                                  1.0s
 ⠿ Container openchat-llm-server-1      Started                                                                                                                                                                                                                   0.7s
 ⠿ Container openchat-mysql-1           Started                                                                                                                                                                                                                   1.0s
 ⠿ Container openchat-backend-server-1  Created                                                                                                                                                                                                                   0.0s
Error response from daemon: driver failed programming external connectivity on endpoint openchat-redis-1 (9b7814509190f2ce6cd501f0dc1ae1178509abeee45da23550c5df0b333c0021): Bind for 0.0.0.0:6379 failed: port is already allocated
make: *** [install] Error 1
❯ make install
=== Putting the services down (if already running) ===
docker-compose down --remove-orphans
[+] Running 5/4
 ⠿ Container openchat-backend-server-1  Removed                                                                                                                                                                                                                   0.0s
 ⠿ Container openchat-mysql-1           Removed                                                                                                                                                                                                                   1.3s
 ⠿ Container openchat-redis-1           Removed                                                                                                                                                                                                                   0.0s
 ⠿ Container openchat-llm-server-1      Removed                                                                                                                                                                                                                   0.8s
 ⠿ Network openchat_openchat_network    Removed                                                                                                                                                                                                                   0.0s
=== Setting up Docker environment ===
=== This will overwrite your .env files, you still have some time to abort ===
=== Copying .env files ===
cp -n backend-server/.env.example backend-server/.env 2>/dev/null || true
cp -n common.env llm-server/.env 2>/dev/null || true
docker-compose build #--no-cache
[+] Building 0.6s (11/11) FINISHED                                                                                                                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 69B                                                                                                                                                                                                                               0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/node:18                                                                                                                                                                                                        0.5s
 => [1/6] FROM docker.io/library/node:18@sha256:8cdf7234449f35e579f7491137807ddb3a089f028862f7ab69af437cc9f47ff1                                                                                                                                                  0.0s
 => [internal] load build context                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2.15kB                                                                                                                                                                                                                               0.0s
 => CACHED [2/6] WORKDIR /usr/src/app                                                                                                                                                                                                                             0.0s
 => CACHED [3/6] COPY package*.json yarn.lock ./                                                                                                                                                                                                                  0.0s
 => CACHED [4/6] COPY .env .env                                                                                                                                                                                                                                   0.0s
 => CACHED [5/6] RUN yarn install                                                                                                                                                                                                                                 0.0s
 => CACHED [6/6] COPY . .                                                                                                                                                                                                                                         0.0s
 => exporting to image                                                                                                                                                                                                                                            0.0s
 => => exporting layers                                                                                                                                                                                                                                           0.0s
 => => writing image sha256:c09e1e892c05835a81e9ba2cd173519d2d1a98bca3ff2b5c8d3abe6af7b276b0                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-llm-server                                                                                                                                                                                                            0.0s
[+] Building 0.5s (14/14) FINISHED                                                                                                                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 69B                                                                                                                                                                                                                               0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/php:8.1-cli                                                                                                                                                                                                    0.4s
 => [1/9] FROM docker.io/library/php:8.1-cli@sha256:1e2526b7fa73a1da7ebffa6773aee9a79c6e05603110b496bb8737651e33230a                                                                                                                                              0.0s
 => [internal] load build context                                                                                                                                                                                                                                 0.0s
 => => transferring context: 36.47kB                                                                                                                                                                                                                              0.0s
 => CACHED [2/9] RUN apt-get update && apt-get install -y     libpq-dev     libzip-dev     zip     unzip     git                                                                                                                                                  0.0s
 => CACHED [3/9] RUN docker-php-ext-install pdo pdo_mysql                                                                                                                                                                                                         0.0s
 => CACHED [4/9] WORKDIR /var/www/html                                                                                                                                                                                                                            0.0s
 => CACHED [5/9] COPY . .                                                                                                                                                                                                                                         0.0s
 => CACHED [6/9] COPY .env .env                                                                                                                                                                                                                                   0.0s
 => CACHED [7/9] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer                                                                                                                                         0.0s
 => CACHED [8/9] RUN composer install --no-plugins --no-scripts                                                                                                                                                                                                   0.0s
 => CACHED [9/9] RUN php artisan key:generate                                                                                                                                                                                                                     0.0s
 => exporting to image                                                                                                                                                                                                                                            0.0s
 => => exporting layers                                                                                                                                                                                                                                           0.0s
 => => writing image sha256:41b2bf7b715d7c358560802f49c6efc8c080a310401d7bc086c0cf1b2a19b9cf                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-backend-server                                                                                                                                                                                                        0.0s
docker-compose up -d #--force-recreate
[+] Running 4/5
 ⠿ Network openchat_openchat_network    Created                                                                                                                                                                                                                   0.0s
 ⠿ Container openchat-llm-server-1      Started                                                                                                                                                                                                                   0.5s
 ⠿ Container openchat-redis-1           Starting                                                                                                                                                                                                                  0.7s
 ⠿ Container openchat-mysql-1           Started                                                                                                                                                                                                                   0.7s
 ⠿ Container openchat-backend-server-1  Created                                                                                                                                                                                                                   0.0s
Error response from daemon: driver failed programming external connectivity on endpoint openchat-redis-1 (3f6ea4f3a9bbc3340a4c5437583385c597cbd0bc1814297102103555e38091bb): Bind for 0.0.0.0:6379 failed: port is already allocated
make: *** [install] Error 1
❯ npx kill-port 6379
Process on port 6379 killed
❯ make install
=== Putting the services down (if already running) ===
docker-compose down --remove-orphans
Cannot connect to the Docker daemon at unix:///Users/laptop/.docker/run/docker.sock. Is the docker daemon running?
make: *** [install] Error 1
❯ make install
=== Putting the services down (if already running) ===
docker-compose down --remove-orphans
[+] Running 5/5
 ✔ Container openchat-backend-server-1  Removed                                                                                                                                                                                                                   0.0s 
 ✔ Container openchat-llm-server-1      Removed                                                                                                                                                                                                                   0.7s 
 ✔ Container openchat-mysql-1           Removed                                                                                                                                                                                                                   1.5s 
 ✔ Container openchat-redis-1           Removed                                                                                                                                                                                                                   0.0s 
 ✔ Network openchat_openchat_network    Removed                                                                                                                                                                                                                   0.0s 
=== Setting up Docker environment ===
=== This will overwrite your .env files, you still have some time to abort ===
=== Copying .env files ===
cp -n backend-server/.env.example backend-server/.env 2>/dev/null || true
cp -n common.env llm-server/.env 2>/dev/null || true
docker-compose build #--no-cache
[+] Building 1.7s (11/11) FINISHED                                                                                                                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 473B                                                                                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/node:18                                                                                                                                                                                                        1.6s
 => [internal] load build context                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2.15kB                                                                                                                                                                                                                               0.0s
 => [1/6] FROM docker.io/library/node:18@sha256:8cdf7234449f35e579f7491137807ddb3a089f028862f7ab69af437cc9f47ff1                                                                                                                                                  0.0s
 => CACHED [2/6] WORKDIR /usr/src/app                                                                                                                                                                                                                             0.0s
 => CACHED [3/6] COPY package*.json yarn.lock ./                                                                                                                                                                                                                  0.0s
 => CACHED [4/6] COPY .env .env                                                                                                                                                                                                                                   0.0s
 => CACHED [5/6] RUN yarn install                                                                                                                                                                                                                                 0.0s
 => CACHED [6/6] COPY . .                                                                                                                                                                                                                                         0.0s
 => exporting to image                                                                                                                                                                                                                                            0.0s
 => => exporting layers                                                                                                                                                                                                                                           0.0s
 => => writing image sha256:e237f6192d01fb35dba24776025422954fba905d6dee0522d4df35f8a59bf0f9                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-llm-server                                                                                                                                                                                                            0.0s
[+] Building 1.2s (14/14) FINISHED                                                                                                                                                                                                                                     
 => [internal] load .dockerignore                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                   0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 961B                                                                                                                                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/php:8.1-cli                                                                                                                                                                                                    1.2s
 => [1/9] FROM docker.io/library/php:8.1-cli@sha256:1e2526b7fa73a1da7ebffa6773aee9a79c6e05603110b496bb8737651e33230a                                                                                                                                              0.0s
 => [internal] load build context                                                                                                                                                                                                                                 0.0s
 => => transferring context: 36.47kB                                                                                                                                                                                                                              0.0s
 => CACHED [2/9] RUN apt-get update && apt-get install -y     libpq-dev     libzip-dev     zip     unzip     git                                                                                                                                                  0.0s
 => CACHED [3/9] RUN docker-php-ext-install pdo pdo_mysql                                                                                                                                                                                                         0.0s
 => CACHED [4/9] WORKDIR /var/www/html                                                                                                                                                                                                                            0.0s
 => CACHED [5/9] COPY . .                                                                                                                                                                                                                                         0.0s
 => CACHED [6/9] COPY .env .env                                                                                                                                                                                                                                   0.0s
 => CACHED [7/9] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer                                                                                                                                         0.0s
 => CACHED [8/9] RUN composer install --no-plugins --no-scripts                                                                                                                                                                                                   0.0s
 => CACHED [9/9] RUN php artisan key:generate                                                                                                                                                                                                                     0.0s
 => exporting to image                                                                                                                                                                                                                                            0.0s
 => => exporting layers                                                                                                                                                                                                                                           0.0s
 => => writing image sha256:d0541fc8152a57cc43cac75456cc4b789a5717b28a1573ba917e005842d3d555                                                                                                                                                                      0.0s
 => => naming to docker.io/library/openchat-backend-server                                                                                                                                                                                                        0.0s
docker-compose up -d #--force-recreate
[+] Running 4/5
 ✔ Network openchat_openchat_network    Created                                                                                                                                                                                                                   0.0s 
 ⠿ Container openchat-redis-1           Starting                                                                                                                                                                                                                  0.6s 
 ✔ Container openchat-llm-server-1      Started                                                                                                                                                                                                                   0.6s 
 ✔ Container openchat-mysql-1           Started                                                                                                                                                                                                                   0.6s 
 ✔ Container openchat-backend-server-1  Created                                                                                                                                                                                                                   0.0s 
Error response from daemon: driver failed programming external connectivity on endpoint openchat-redis-1 (e5cfa636640e0339894f53c7192106058714dd0818debe63327c937fd6330d26): Bind for 0.0.0.0:6379 failed: port is already allocated
make: *** [install] Error 1

~/Development/Learning/llm/OpenChat on bc/gitignore…cker-running ────

UNABLE TO DELETE UNWANTED CHATBOTS FROM THE ACCOUNT

Hello,

there's no option to delete unwanted chatbots and cleanup the dashboard. Also unable to delete unwanted training data from the chatbot. there's a delete button but it's not working.

Best Regards,
Raj

2023-06-05 12:40:06 error - Error: Missing Pinecone index name in .env file

Looks like dotenv is not being configured properly, as I have verified that I have added my api keys to .env.

This appears to be caused by the ingeset script in llm-server/package.json#scripts#ingest

"ingest": "tsx -r dotenv/config scripts/ingest-data.ts"

I looked through the codebase and can't find ingest-data.ts anywhere.

Currently looking at manually invoking dotenv's config method to see if that would work.

Complete Docker logs for openchat-llm-server-1

2023-06-05 12:36:58 
2023-06-05 12:36:58 > [email protected] dev
2023-06-05 12:36:58 > next dev
2023-06-05 12:36:58 
2023-06-05 12:36:59 ready - started server on 0.0.0.0:3000, url: http://localhost:3000
2023-06-05 12:36:59 info  - Loaded env from /usr/src/app/.env
2023-06-05 12:36:59 Attention: Next.js now collects completely anonymous telemetry regarding usage.
2023-06-05 12:36:59 This information is used to shape Next.js' roadmap and prioritize features.
2023-06-05 12:36:59 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2023-06-05 12:36:59 https://nextjs.org/telemetry
2023-06-05 12:36:59 
2023-06-05 12:37:01 event - compiled client and server successfully in 955 ms (154 modules)
2023-06-05 12:40:06 wait  - compiling /api/ingest (client and server)...
2023-06-05 12:40:06 event - compiled successfully in 117 ms (59 modules)
2023-06-05 12:40:06 wait  - compiling /_error (client and server)...
2023-06-05 12:40:06 error - config/pinecone.ts (6:8) @ eval
2023-06-05 12:40:06 error - Error: Missing Pinecone index name in .env file
2023-06-05 12:40:06     at eval (webpack-internal:///(api)/./config/pinecone.ts:9:11)
2023-06-05 12:40:06     at (api)/./config/pinecone.ts (/usr/src/app/.next/server/pages/api/ingest.js:162:1)
2023-06-05 12:40:06     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:40:06     at eval (webpack-internal:///(api)/./data-sources/pdfHandler.ts:13:74)
2023-06-05 12:40:06     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:40:06     at eval (webpack-internal:///(api)/./data-sources/pdfHandler.ts:1:21)
2023-06-05 12:40:06     at (api)/./data-sources/pdfHandler.ts (/usr/src/app/.next/server/pages/api/ingest.js:182:1)
2023-06-05 12:40:06     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:40:06     at eval (webpack-internal:///(api)/./pages/api/ingest.ts:6:82)
2023-06-05 12:40:06     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:40:06     at eval (webpack-internal:///(api)/./pages/api/ingest.ts:1:21)
2023-06-05 12:40:06     at (api)/./pages/api/ingest.ts (/usr/src/app/.next/server/pages/api/ingest.js:202:1)
2023-06-05 12:40:06     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:40:06     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/ingest.js:232:39)
2023-06-05 12:40:06     at /usr/src/app/.next/server/pages/api/ingest.js:233:28
2023-06-05 12:40:06     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/ingest.js:236:3)
2023-06-05 12:40:06     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:40:06     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:40:06     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:40:06     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:40:06     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:40:06     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:40:06     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:40:06     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:40:06     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:40:06     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:40:06     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:40:06     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:40:06     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:40:06     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:40:06   4 | 
2023-06-05 12:40:06   5 | if (!process.env.PINECONE_INDEX_NAME) {
2023-06-05 12:40:06 > 6 |   throw new Error('Missing Pinecone index name in .env file');
2023-06-05 12:40:06     |        ^
2023-06-05 12:40:06   7 | }
2023-06-05 12:40:06   8 | 
2023-06-05 12:40:06   9 | const PINECONE_INDEX_NAME = process.env.PINECONE_INDEX_NAME ?? '';
2023-06-05 12:46:29 error - config/pinecone.ts (6:8) @ eval
2023-06-05 12:46:29 error - Error: Missing Pinecone index name in .env file
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./config/pinecone.ts:9:11)
2023-06-05 12:46:29     at (api)/./config/pinecone.ts (/usr/src/app/.next/server/pages/api/chat.js:72:1)
2023-06-05 12:46:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:10:74)
2023-06-05 12:46:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:1:21)
2023-06-05 12:46:29     at (api)/./pages/api/chat.ts (/usr/src/app/.next/server/pages/api/chat.js:82:1)
2023-06-05 12:46:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:46:29     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/chat.js:112:39)
2023-06-05 12:46:29     at /usr/src/app/.next/server/pages/api/chat.js:113:28
2023-06-05 12:46:29     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/chat.js:116:3)
2023-06-05 12:46:29     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:40:06 event - compiled client and server successfully in 116 ms (186 modules)
2023-06-05 12:46:28 wait  - compiling /api/chat (client and server)...
2023-06-05 12:46:29 event - compiled successfully in 64 ms (46 modules)
2023-06-05 12:46:29 wait  - compiling /_error (client and server)...
2023-06-05 12:46:29     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:46:29     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:46:29     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:46:29     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:46:29     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:46:29     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:46:29     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:46:29     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:46:29     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:46:29     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:46:29     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:46:29     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:46:29     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:46:29   4 | 
2023-06-05 12:46:29   5 | if (!process.env.PINECONE_INDEX_NAME) {
2023-06-05 12:46:29 > 6 |   throw new Error('Missing Pinecone index name in .env file');
2023-06-05 12:46:29     |        ^
2023-06-05 12:46:29   7 | }
2023-06-05 12:46:29   8 | 
2023-06-05 12:46:29   9 | const PINECONE_INDEX_NAME = process.env.PINECONE_INDEX_NAME ?? '';
2023-06-05 12:46:29 error - utils/pinecone-client.ts (4:8) @ eval
2023-06-05 12:46:29 error - unhandledRejection: Error: Pinecone environment or api key vars missing
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./utils/pinecone-client.ts:10:11)
2023-06-05 12:46:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./utils/pinecone-client.ts:1:21)
2023-06-05 12:46:29     at (api)/./utils/pinecone-client.ts (/usr/src/app/.next/server/pages/api/chat.js:102:1)
2023-06-05 12:46:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:9:80)
2023-06-05 12:46:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:46:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:1:21)
2023-06-05 12:46:29     at (api)/./pages/api/chat.ts (/usr/src/app/.next/server/pages/api/chat.js:82:1)
2023-06-05 12:46:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:46:29     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/chat.js:112:39)
2023-06-05 12:46:29     at /usr/src/app/.next/server/pages/api/chat.js:113:28
2023-06-05 12:46:29     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/chat.js:116:3)
2023-06-05 12:46:29     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:46:29     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:46:29     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:46:29     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:46:29     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:46:29     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:46:29     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:46:29     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:46:29     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:46:29     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:46:29     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:46:29     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:46:29     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:46:29     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:46:29   2 | 
2023-06-05 12:46:29   3 | if (!process.env.PINECONE_ENVIRONMENT || !process.env.PINECONE_API_KEY) {
2023-06-05 12:46:29 > 4 |   throw new Error('Pinecone environment or api key vars missing');
2023-06-05 12:46:29     |        ^
2023-06-05 12:46:29   5 | }
2023-06-05 12:46:29   6 | 
2023-06-05 12:46:29   7 | async function initPinecone() {
2023-06-05 12:47:29 error - config/pinecone.ts (6:8) @ eval
2023-06-05 12:47:29 error - Error: Missing Pinecone index name in .env file
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./config/pinecone.ts:9:11)
2023-06-05 12:47:29     at (api)/./config/pinecone.ts (/usr/src/app/.next/server/pages/api/chat.js:72:1)
2023-06-05 12:47:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:10:74)
2023-06-05 12:47:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:1:21)
2023-06-05 12:47:29     at (api)/./pages/api/chat.ts (/usr/src/app/.next/server/pages/api/chat.js:82:1)
2023-06-05 12:47:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:47:29     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/chat.js:112:39)
2023-06-05 12:47:29     at /usr/src/app/.next/server/pages/api/chat.js:113:28
2023-06-05 12:47:29     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/chat.js:116:3)
2023-06-05 12:47:29     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:47:29     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:47:29     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:47:29     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:47:29     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:46:29 event - compiled client and server successfully in 104 ms (173 modules)
2023-06-05 12:47:29     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:47:29     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:47:29     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:47:29     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:47:29     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:47:29     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:47:29     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:47:29     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:47:29     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:47:29   4 | 
2023-06-05 12:47:29   5 | if (!process.env.PINECONE_INDEX_NAME) {
2023-06-05 12:47:29 > 6 |   throw new Error('Missing Pinecone index name in .env file');
2023-06-05 12:47:29     |        ^
2023-06-05 12:47:29   7 | }
2023-06-05 12:47:29   8 | 
2023-06-05 12:47:29   9 | const PINECONE_INDEX_NAME = process.env.PINECONE_INDEX_NAME ?? '';
2023-06-05 12:47:29 error - utils/pinecone-client.ts (4:8) @ eval
2023-06-05 12:47:29 error - unhandledRejection: Error: Pinecone environment or api key vars missing
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./utils/pinecone-client.ts:10:11)
2023-06-05 12:47:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./utils/pinecone-client.ts:1:21)
2023-06-05 12:47:29     at (api)/./utils/pinecone-client.ts (/usr/src/app/.next/server/pages/api/chat.js:102:1)
2023-06-05 12:47:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:9:80)
2023-06-05 12:47:29     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:47:29     at eval (webpack-internal:///(api)/./pages/api/chat.ts:1:21)
2023-06-05 12:47:29     at (api)/./pages/api/chat.ts (/usr/src/app/.next/server/pages/api/chat.js:82:1)
2023-06-05 12:47:29     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:47:29     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/chat.js:112:39)
2023-06-05 12:47:29     at /usr/src/app/.next/server/pages/api/chat.js:113:28
2023-06-05 12:47:29     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/chat.js:116:3)
2023-06-05 12:47:29     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:47:29     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:47:29     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:47:29     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:47:29     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:47:29     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:47:29     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:47:29     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:47:29     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:47:29     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:47:29     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:47:29     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:47:29     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:47:29     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:47:29   2 | 
2023-06-05 12:47:29   3 | if (!process.env.PINECONE_ENVIRONMENT || !process.env.PINECONE_API_KEY) {
2023-06-05 12:47:29 > 4 |   throw new Error('Pinecone environment or api key vars missing');
2023-06-05 12:47:29     |        ^
2023-06-05 12:47:29   5 | }
2023-06-05 12:47:29   6 | 
2023-06-05 12:47:29   7 | async function initPinecone() {
2023-06-05 12:51:08 error - config/pinecone.ts (6:8) @ eval
2023-06-05 12:51:08 error - Error: Missing Pinecone index name in .env file
2023-06-05 12:51:08     at eval (webpack-internal:///(api)/./config/pinecone.ts:9:11)
2023-06-05 12:51:08     at (api)/./config/pinecone.ts (/usr/src/app/.next/server/pages/api/chat.js:72:1)
2023-06-05 12:51:08     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:51:08     at eval (webpack-internal:///(api)/./pages/api/chat.ts:10:74)
2023-06-05 12:51:08     at __webpack_require__.a (/usr/src/app/.next/server/webpack-api-runtime.js:97:13)
2023-06-05 12:51:08     at eval (webpack-internal:///(api)/./pages/api/chat.ts:1:21)
2023-06-05 12:51:08     at (api)/./pages/api/chat.ts (/usr/src/app/.next/server/pages/api/chat.js:82:1)
2023-06-05 12:51:08     at __webpack_require__ (/usr/src/app/.next/server/webpack-api-runtime.js:33:42)
2023-06-05 12:51:08     at __webpack_exec__ (/usr/src/app/.next/server/pages/api/chat.js:112:39)
2023-06-05 12:51:08     at /usr/src/app/.next/server/pages/api/chat.js:113:28
2023-06-05 12:51:08     at Object.<anonymous> (/usr/src/app/.next/server/pages/api/chat.js:116:3)
2023-06-05 12:51:08     at Module._compile (node:internal/modules/cjs/loader:1254:14)
2023-06-05 12:51:08     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
2023-06-05 12:51:08     at Module.load (node:internal/modules/cjs/loader:1117:32)
2023-06-05 12:51:08     at Module._load (node:internal/modules/cjs/loader:958:12)
2023-06-05 12:51:08     at Module.require (node:internal/modules/cjs/loader:1141:19)
2023-06-05 12:51:08     at require (node:internal/modules/cjs/helpers:110:18)
2023-06-05 12:51:08     at DevServer.runApi (/usr/src/app/node_modules/next/dist/server/next-server.js:506:34)
2023-06-05 12:51:08     at DevServer.handleApiRequest (/usr/src/app/node_modules/next/dist/server/next-server.js:861:21)
2023-06-05 12:51:08     at Object.fn (/usr/src/app/node_modules/next/dist/server/next-server.js:815:46)
2023-06-05 12:51:08     at async Router.execute (/usr/src/app/node_modules/next/dist/server/router.js:243:32)
2023-06-05 12:51:08     at async DevServer.runImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:432:29)
2023-06-05 12:51:08     at async DevServer.run (/usr/src/app/node_modules/next/dist/server/dev/next-dev-server.js:814:20)
2023-06-05 12:51:08     at async DevServer.handleRequestImpl (/usr/src/app/node_modules/next/dist/server/base-server.js:375:20)
2023-06-05 12:51:08     at async /usr/src/app/node_modules/next/dist/server/base-server.js:157:99
2023-06-05 12:51:08   4 | 
2023-06-05 12:51:08   5 | if (!process.env.PINECONE_INDEX_NAME) {
2023-06-05 12:51:08 > 6 |   throw new Error('Missing Pinecone index name in .env file');
2023-06-05 12:51:08     |        ^
2023-06-05 12:51:08   7 | }
2023-06-05 12:51:08   8 | 
2023-06-05 12:51:08   9 | const PINECONE_INDEX_NAME = process.env.PINECONE_INDEX_NAME ?? '';

How to support multiple languages

Hi there,
gpt-3.5-turbo and others can handle non-English languages. Currently OpenChat is only in English, right? Can you please support multi languages?

UNABLE TO EMBED OPENCHAT BOT ON MY WEBSITE

HELLO THERE,

I HAVE CREATED CHAT BOT ON OPENCHAT.SO WEBSITE AND IT'S WORKING FINE ON THAT WEBSITE BUT I/M UNABLE TO EMBED IT ON MY WORDPRESS WEBSITE, THE ERROR I/M GETTING IS "OPENCHAT.SO REFUSED TO CONNECT" AM I ONLY FACING THIS ERROR OR OTHER PEOPLE ALSO GETTING SAME ERROR? CAN YOU GUIDE ME HOW CAN I SUCCESSFULLY EMBED CHAT BOT ON MY WORDPRESS WEBSITE?

THANKS FOR ANY SUPPORT

License?

It says in the readme it's MIT but no license file in the source

error docker

Does anyone know how to solve it? This is in an ubuntu virtual machine, thanks.
INFO Configuration cached successfully.

=== Run backend server server migrations ===
docker-compose exec backend-server php artisan migrate --seed

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution (Connection: mysql, SQL: select * from information_schema.tables where table_schema = openchat and table_name = migrations and table_type = 'BASE TABLE')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:793
789▕ // If an exception occurs when attempting to run a query, we'll format the error
790▕ // message to include the bindings with SQL, which will make this exception a
791▕ // lot more helpful to the developer instead of just the database's errors.
792▕ catch (Exception $e) {
➜ 793▕ throw new QueryException(
794▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
795▕ );
796▕ }
797▕ }

  +38 vendor frames

39 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

make: *** [Makefile:27: install] Error 1

Milvus support

Hi,
Are you planning support of Milvus vector db ? (standalone installation)

Multiple session

Hello, just managed to connect register / login etc...

However, it appears that every time I create an account every accounts are getting the same chatbots.

Any clue on how to give unique chatbots depending on user ID?

Thanks
If anyone can help, my discord : Bundl#1943

About your project - open sourcing

Hi.

I'm wondering about your roadmap, will the features : analytics, file deleting & re-syncing, UI designer etc... become open source or it will only be listed on openchat.so?

Thank you, I need some clarification about this.

Something went wrong with the bo

Need Help, when I enter the URL and start chatting with the bot it gives the error I tried the same website URL on openchat.so, it's
Screenshot 2023-06-07 123138
working fine there.

Feature: Adding support for Office 365.

Feature Request: Support for Office 365

Description

I would like to request the addition of support for Office 365 in OpenChat.

Proposed Solution

  • PowerPoint, Word, OneNote: By processing raw text and specifying different weights for headings, descriptions, etc.

  • Excel: By processing the rows and columns as tables, OpenChat can interpret the data and provide relevant information. If any prompts or formulas are included in the Excel file, OpenChat can consider them during the analysis. In cases where external prompts are required, users can be prompted to provide additional information.

NEW TEXT IN THE CHAT FIELD IS NOT SCROLLING UP AND APPEARING ON SCREEN

Hello,

When we get the new message it's hiding below the text field or behind the keyboard if it's mobile device and we need to scroll it up manually to read the new text. It is good to have scrolling up automatically feature for the new text.

Also it's good to have a custom welcome message for each chatbot and it'll give a basic idea to the visitors that the context of the chat and also looks professional if it's meant for a company website.

Thanks,
Raj

install

I can't seem to find the install file. Also can we use a GPT4ALL model instead of an OpenAI API?

Install errors

Hi

Seems to be cool repo. Kudos!

Have tried to install it in all possible ways but facing this error:

PS C:\Users\Tal\VScode\OpenChat> make install
"\033[1m=== Putting the services down (if already running) ===\033[0m"
docker-compose down --remove-orphans
Removing network openchat_openchat_network
WARNING: Network openchat_openchat_network not found.
"\033[1m=== Setting up Docker environment ===\033[0m"
"\033[1m=== This will overwrite your .env files, you still have some time to abort ===\033[0m"
process_begin: CreateProcess(NULL, sleep 5, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:16: install] Error 2
PS C:\Users\Tal\VScode\OpenChat>

Do I have to do anything else except of what is written in Installation guide?

Working on Windows 10, VScode, have make installed..., Dovcker Desktop as well

Can't get it to work

I configured according to the instructions, uploaded files and even provided websites for training, but when I input a prompt to inquire about the documents that had been uploaded...nothing happens. All API keys have been added, etc

Contacting the team

Hey, I couldn't find any information on how to contact the Open Chat team both in terms of getting support and also for more info on becoming a contributor. Is there a discord server or something?

Adding manual context

Just as other provider are doing, giving ability to user to write down some question and how bot should answer!

Just an idea, but it's useful!

Not working after uploading

I tried a bunch of things already but it seems that the the files cant be uploaded to pinecone, maybe the chunk splitter is not working fine, here are some logs:
image
image

I have all the keys well set and i've tested a bunch of methods, different OS's and everything. I think that it might be the pinecone client.

Issue building and running with SQLite option.

In the backend-server/.env file I set DB_CONNECTION to sqlite and added DB_DATABASE variable set to the path of an empty sqlite database file. I then built/ran the program with docker-compose build and docker-compose up and went to port 8000 (I'm using an Ubuntu server). It's apparently running but giving me the following error: "Database file at path [/the/path/I/used.sqlite] does not exist. Ensure this is an absolute path to the database." Using the file command I confirmed this path does exist and is accessible to the user which runs the docker image. Not sure if SQLite is fully supported yet or that I'm doing something wrong? I think I covered just about everything I could in getting it to run with SQLite. If anyone has any ideas it would be greatly appreciated. Was really looking forward to demo'ing this awesome program with my own API limits. Thanks.

error AxiosError: Request failed with status code 401

I suffer this error,please...

error AxiosError: Request failed with status code 401
2023-06-15 19:28:02 at createError (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:310:16)
2023-06-15 19:28:02 at settle (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:25:16)
2023-06-15 19:28:02 at file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:175:19
2023-06-15 19:28:02 at new Promise ()
2023-06-15 19:28:02 at fetchAdapter (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:167:12)
2023-06-15 19:28:02 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-06-15 19:28:02 at async RetryOperation._fn (/usr/src/app/node_modules/p-retry/index.js:50:12) {
2023-06-15 19:28:02 config: {
2023-06-15 19:28:02 transitional: {
2023-06-15 19:28:02 silentJSONParsing: true,
2023-06-15 19:28:02 forcedJSONParsing: true,
2023-06-15 19:28:02 clarifyTimeoutError: false
2023-06-15 19:28:02 },
2023-06-15 19:28:02 adapter: [AsyncFunction: fetchAdapter],
2023-06-15 19:28:02 transformRequest: [ [Function: transformRequest] ],
2023-06-15 19:28:02 transformResponse: [ [Function: transformResponse] ],
2023-06-15 19:28:02 timeout: 0,
2023-06-15 19:28:02 xsrfCookieName: 'XSRF-TOKEN',
2023-06-15 19:28:02 xsrfHeaderName: 'X-XSRF-TOKEN',
2023-06-15 19:28:02 maxContentLength: -1,
2023-06-15 19:28:02 maxBodyLength: -1,
2023-06-15 19:28:02 validateStatus: [Function: validateStatus],
2023-06-15 19:28:02 headers: {
2023-06-15 19:28:02 Accept: 'application/json, text/plain, /',
2023-06-15 19:28:02 'Content-Type': 'application/json',
2023-06-15 19:28:02 'User-Agent': 'OpenAI/NodeJS/3.2.1',
2023-06-15 19:28:02 Authorization: 'Bearer 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'
2023-06-15 19:28:02 },
2023-06-15 19:28:02 method: 'post',
2023-06-15 19:28:02 data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":false,"messages":[{"role":"user","content":"Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.\n\nChat History:\ntest\nFollow Up Input: test\nStandalone question:"}]}',
2023-06-15 19:28:02 url: 'https://api.openai.com/v1/chat/completions'
2023-06-15 19:28:02 },

Is the 5 PDFs/100k words limit a technical limitation?

Just wanted to check if that limit is more of a recommendation for the online demo to save on costs, or if there is a technical reason to limit ingestion to that amount. Thank you for building this, it looks like a great product!

OpenChat APIs

Is it possible to have APIs for chatbots? As a sort of "batteries included" solution to setting up a chatbot as part of another larger application that needs knowledge from websites and pdfs.

Host on the server

Are we allowed to host it on our own server and domain ??

If YES?

any suggestions on where I can deploy this?

NEW CHAT BOTS ON OPENCHAT.SO ARE NOT WORKING

Hello I have created few chatbots on openchat.so but none of them are working. I created two chatbots on 1st june, one with pdf file and another one with website link and both are working fine but unable to embed on my website.

On June 1nd and 3rd I have tried creating another chatbot but platform is not working it seems. It shows that chat bot is live but not giving any information. Keep on saying I'm an AI assistant and I can assist with relevant information I am trained with or something similar.

I tried using VPN as well but it's not working even if I change my account. Can you check if there are errors?

Question about authorization

Hi,
Have a problem with the service; I changed common.env with the OpenAI and Pinecone tokens, and everything is running correctly (the front end is up), but when I give bot text, something is not correct.

Also, is it possible to directly access the backend chat and bypass the frontend from the remote server?

Logs:
req.body {
question: 'Hello',
history: [ 'Hello' ],
namespace: 'b16cc0d8-2fd0-4414-bb7a-4f7832de5fed',
mode: 'assistant'
}
{
question: 'Hello',
history: [ 'Hello' ],
namespace: 'b16cc0d8-2fd0-4414-bb7a-4f7832de5fed',
mode: 'assistant'
}
error AxiosError: Request failed with status code 401
at createError (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:310:16)
at settle (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:25:16)
at file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:175:19
at new Promise ()
at fetchAdapter (file:///usr/src/app/node_modules/langchain/dist/util/axios-fetch-adapter.js:167:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RetryOperation._fn (/usr/src/app/node_modules/p-retry/index.js:50:12) {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [AsyncFunction: fetchAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'User-Agent': 'OpenAI/NodeJS/3.2.1',
Authorization: 'Bearer MY TOKEN'
},
method: 'post',
data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":false,"messages":[{"role":"user","content":"Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.\n\nChat History:\nHello\nFollow Up Input: Hello\nStandalone question:"}]}',
url: 'https://api.openai.com/v1/chat/completions'
},
request: Request {
[Symbol(realm)]: { settingsObject: [Object] },
[Symbol(state)]: {
method: 'POST',
localURLsOnly: false,
unsafeRequest: false,
body: [Object],
client: [Object],
reservedClient: null,
replacesClientId: '',
window: 'client',
keepalive: false,
serviceWorkers: 'all',
initiator: '',
destination: '',
priority: null,
origin: 'client',
policyContainer: 'client',
referrer: 'client',
referrerPolicy: '',
mode: 'cors',
useCORSPreflightFlag: false,
credentials: 'same-origin',
useCredentials: false,
cache: 'default',
redirect: 'follow',
integrity: '',
cryptoGraphicsNonceMetadata: '',
parserMetadata: '',
reloadNavigation: false,
historyNavigation: false,
userActivation: false,
taintedOrigin: false,
redirectCount: 0,
responseTainting: 'basic',
preventNoCacheCacheControlHeaderModification: false,
done: false,
timingAllowFailed: false,
headersList: [HeadersList],
urlList: [Array],
url: [URL]
},
[Symbol(signal)]: AbortSignal { aborted: false },
[Symbol(headers)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
}
},
response: {
ok: false,
status: 401,
statusText: 'Unauthorized',
headers: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
},
config: {
transitional: [Object],
adapter: [AsyncFunction: fetchAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
data: '{"model":"gpt-3.5-turbo","temperature":0,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":false,"messages":[{"role":"user","content":"Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.\n\nChat History:\nHello\nFollow Up Input: Hello\nStandalone question:"}]}',
url: 'https://api.openai.com/v1/chat/completions'
},
request: Request {
[Symbol(realm)]: [Object],
[Symbol(state)]: [Object],
[Symbol(signal)]: [AbortSignal],
[Symbol(headers)]: [HeadersList]
},
data: { error: [Object] }
},
attemptNumber: 7,
retriesLeft: 0
}

make install failed with error: failed to build: The command '/bin/sh -c yarn install' returned a non-zero code: 134

node[7]: ../src/node_platform.cc:68:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xb7a940 node::Abort() [node]
2: 0xb7a9be [node]
3: 0xbe98be [node]
4: 0xbe99a1 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
5: 0xb38f5b node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, node::ProcessFlags::Flags) [node]
6: 0xb395ab node::Start(int, char**) [node]
7: 0x7f09c5dfe18a [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7f09c5dfe245 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: 0xabbdee _start [node]
Aborted (core dumped)
ERROR: Service 'llm-server' failed to build: The command '/bin/sh -c yarn install' returned a non-zero code: 134
make: *** [install] Error 1

btw: what's the minimum available memory of the server needed?

OpenestChat

I would like to see a fork where we could run our own custom llama/or w/e model locally instead of being API dependent on a massive private corp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.