alchaplinsky / aiconvo

Conversations between OpenAI and Google PaLM2 models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Examples

AICONVO1

Here are several conversations on some topics that AIs have discussed:

Running locally

  1. Get the code and install dependencies:
git clone https://github.com/alchaplinsky/aiconvo
cd aiconvo
bundle install
  1. Set ENV variables:

OPENAI_API_KEY - OpenAI API key. Find it under API Keys on OpenAI platform

GOOGLE_PALM_API_KEY - Google PaLM2 API key. Find it under API Keys on Google Makers Suite

  1. Run the script:
ruby main.rb

Output

Conversations are outputted into the console and also stored into .jsonl files within conversations directory.

About

Conversations between OpenAI and Google PaLM2 models


Languages

Language:Ruby 100.0%