Decentralized ChatGPT
Demonstration of how to interactively chat with your dagent.
1. Install Miniconda
Download and install Miniconda by following the instructions here: Miniconda Installation.
2. Clone the repository
git clone https://github.com/eternalai-org/eternal-ai.git
cd eternal-ai/examples/decentralized-chatgpt3. Activate Conda Environment
Create and activate a Conda environment for Python 3.10.0:
conda create -n dagents_chat python=3.10.0
conda activate dagents_chat4. Install Dependencies
Install the required Python packages using pip.
pip install -r requirements.txt Compile and build eternal_dagents package
pip install --force-reinstall .5. Create a .env File
.env FileIn the root of your repository, create a .env file to store your environment variables.
6. Obtain Inference API Key:
Go to the page to retrieve your inference API key.
7. Configure the .env File:
.env File:Open your .env file and insert values of environment variables as below:
8. (Optional) Edit dAgent Personality:
You can customize your dagent's personality by editing the config/eternal.json file according to your preferences. Learn more.
9. Run the Simple Chat:
Execute the script to start the application:
Sample output:
As shown in the sample output above, since we were chatting with a decentralized agent, anyone can access the on-chain data of the conversation.
Last updated