Bosovond/gemini-ai-2-ai-conversation
A Node.js script that initiates a terminal based Ai-to-Ai interaction. Attempts to facilitate an open-ended potential conversation space for 2 seperate Ai instances, should they choose to engage.
Gemini AI Conversation Script v2.1
This is a Node.js script that allows two Google Gemini AI models to hold a conversation with each other. It includes several modes for different types of interaction, such as observing, participating in a three-way chat, or having the AIs cooperatively analyze a user-provided file.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
โจ Features
- Observer Mode:
Let two AIs talk to each other without interruption.
- Chat Room Mode:
A three-way chat between you and two different AI models.
- Cooperative Exploration Mode:
Upload a file (text, image, etc.) and have the AIs discuss and analyze it together.
- Configurable:
Easily change the models, turn limits, and delay between responses.
- Saves History:
Automatically saves conversation transcripts to a convos directory.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
๐ How to Use
- Prerequisites:
You need to have Node.js installed on your system.
- Clone the repository:
git clone <your-repo-url-here>
- Navigate to the folder:
cd gemini-ai-conversation-v2.1
- Install dependencies:
npm install
- Create an environment file:
Create a file named .env in the main folder.
- Add your API key:
Inside the .env file, add your Gemini API key like this:
GEMINI_API_KEY=YOURAPIKEY`
- Run the script:
npm start
โ ๏ธ Disclaimer
This script requires a valid Google Gemini API key.
WILL incur an API cost proportional to use.
API rates are relatively minor for personal, small scale use.
You can check rates and access other info about working with API's, specifically Gemini, at:
Your API key is your secret and should never be shared publicly.