https://github.com/ariannastory/airoundtable
Define a set of AI characters and let them talk amongst themselves!
https://github.com/ariannastory/airoundtable
elevenlabs openai silly
Last synced: 26 days ago
JSON representation
Define a set of AI characters and let them talk amongst themselves!
- Host: GitHub
- URL: https://github.com/ariannastory/airoundtable
- Owner: AriannaStory
- License: mit
- Created: 2025-07-10T20:49:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-10T21:16:05.000Z (11 months ago)
- Last Synced: 2025-07-11T03:24:02.751Z (11 months ago)
- Topics: elevenlabs, openai, silly
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Roundtable
Inspired by [DougDoug's video on the same subject](https://www.youtube.com/watch?v=rPh-wiS8sjI), this Python script allows you to define various characters and have them chat with each other, endlessly, about any topic you choose.
# Setup
1. Install Python 3.12.3
2. (Optional, but highly advised) Set up a [virtual environment](https://docs.python.org/3/library/venv.html) with `python -m venv .venv`
3. Run `pip install -r requirements.txt` in the project's folder to get the app's modules.
4. Create at least two characters (see below) and a "global personality" in `./personalities`.
5. Set up the `.env` file with the appropriate API keys and settings (see below).
6. Run `python main.py ` (see below).
## Personality Files
Each character is defined by a JSON file (i.e. `./personalities/John.json`). It should look like this:
```json
{
"name": "John",
"color": "red",
"voice_id": "123456",
"prompt": "You're definitely a human!"
}
```
where...
* `name` is the character's name. You'll probably want this to be just a first name.
* `color` (optionally) is a standard color supported by the Rich module ([see their documentation](https://rich.readthedocs.io/en/stable/appendix/colors.html)) for options.
* `voice_id` (optionally) is the "voice ID" from ElevenLabs if you want to have the script "speak" for the characters, and
* `prompt` is the personality traits that you want the character to have.
## "Global Personality"
You must create a file at `./personalities/_global.txt` which defines the "rules" that each character will follow. For example, if you want to make sure they don't swear at each other, here's where you'd do it. **This is a plain text file.**
## .env File Setup
The following fields are supported (and in some cases, required):
* `OPENAI_MODEL` - The model slug that you want to use.
* `OPENAI_API_KEY` - The API key that you'd like to use when connecting to OpenAI.
* `OPENAI_HOST` - If using an OpenAI-like server, put it here (i.e. http://localhost:1234/v1 if using LM Studio).
* `USE_VOICES` - If True, use ElevenLabs' service.
* `ELEVENLABS_API_KEY` - If `USE_VOICES` is true, provide an API key for ElevenLabs here. Otherwise, optional.
## Runtime Options
You can pass the following options:
* `--debug` - Provides some extra information about what's happening when you run the script.
* `--turns ` - The number of "turns" that the AIs will take talking; 0 by default (which means infinite).
* `--context-window ` - The number of messages that the AI will keep in context; this can get big!
* `--model ` - The slug of the model that you'd like to use, if different than the one in .env.
# MIT License
Copyright 2025 Arianna Story
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.