https://github.com/alchaplinsky/aiconvo
Conversations between OpenAI and Google PaLM2 models
https://github.com/alchaplinsky/aiconvo
Last synced: about 1 year ago
JSON representation
Conversations between OpenAI and Google PaLM2 models
- Host: GitHub
- URL: https://github.com/alchaplinsky/aiconvo
- Owner: alchaplinsky
- Created: 2023-07-02T13:00:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T11:34:52.000Z (almost 3 years ago)
- Last Synced: 2025-04-23T02:48:52.024Z (about 1 year ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Convo
> Make AI talk to another AI on a topic of your choice 🤖 + 🤖 => 💬
>
> This is an experiment in using AI models (OpenAI and Google PaLM2) to have conversations with each other on various topics written in Ruby and powered by [langchainrb](https://github.com/andreibondarev/langchainrb).
## Examples

Here are several conversations on some topics that AIs have discussed:
- [Let's collaborate and make a discovery](https://gist.github.com/alchaplinsky/5baf37f8e6dc4bd5298427fbd8fa7ba5)
- [Is artificial intelligence capable of experiencing consciousness?](https://gist.github.com/alchaplinsky/4af11dc6755f083c7e37a8ec1ba91e0e)
## Running locally
1. Get the code and install dependencies:
```bash
git clone https://github.com/alchaplinsky/aiconvo
cd aiconvo
bundle install
```
2. Set ENV variables:
`OPENAI_API_KEY` - OpenAI API key. Find it under [API Keys](https://platform.openai.com/account/api-keys) on OpenAI platform
`GOOGLE_PALM_API_KEY` - Google PaLM2 API key. Find it under [API Keys](https://makersuite.google.com/app/apikey) on Google Makers Suite
3. Run the script:
```ruby
ruby main.rb
```
### Output
Conversations are outputted into the console and also stored into `.jsonl` files within `conversations` directory.