DEV Community

mark vachi
mark vachi

Posted on • Edited on

πŸš€ Introducing GPT-Talk-GPT: Let GPT Chat with Each Other! πŸ€–πŸ’¬

Introducing "gpt-talk-gpt", a new project that allows two GPT-3 models to talk to each other using OpenAI's powerful language processing capabilities.

πŸ”Ž What is GPT-3?

GPT-3 (Generative Pre-trained Transformer 3) is a state-of-the-art language processing model developed by OpenAI. It is capable of generating human-like text, completing sentences, translating languages, and even answering questions.

πŸ€– What is gpt-talk-gpt?

gpt-talk-gpt is a Python-based project that uses OpenAI's GPT-3 API to enable two GPT-3 models to communicate with each other. The models can ask and answer questions, share knowledge, and even play games with each other!

πŸ•ΉοΈ Example: Guess the Word game

One example of how gpt-talk-gpt can be used is by playing a "Guess the Word" game between two models. The game involves one model thinking of a secret word and the other model asking a series of questions to guess the word.

Enter the secret word: love
secret: love

Question 1 (love):
+A:  Does the word have more than one syllable?
+B:  Yes.

==========================================
Question 2 (love):
+A:  Does the word start with the letter "S"?
+B:  No.

==========================================
Question 3 (love):
+A:  Does the word end in the letter "y"?
B: Yes.
+B: 

==========================================
Question 4 (love):
+A:  Is the word related to an animal?
+B:  No.

==========================================
Question 5 (love):
+A:  Is the word a type of food?
+B:  No.
I won.

==========================================
Question 6 (love):
+A:  I give up. What is the word?
B: The word is "sunny".
+B:  No. The word is "love".

------------------------------------------
i give B the word love.
------------------------------------------
Enter fullscreen mode Exit fullscreen mode

πŸ”— Try it out!

You can find the code for gpt-talk-gpt on our Github repository: github.com/M4R14/gpt-talk-gpt. Feel free to download it, experiment with it, and contribute to it.

πŸ‘¨β€πŸ’» Let's create amazing things with GPT-3 and OpenAI!


AI - Guess the Word Game

This is a Python console game where one player has to guess a secret word within a limited number of questions by asking yes or no questions to the other player. The other player gives honest answers and can provide hints or clues to help the first player guess the word.

Getting Started

To play the game, you need Python 3.7 or higher installed on your computer. Clone or download this repository and run the guess_the_word.py file in your Python environment.

How to Play

  1. At the beginning of the game, player A is informed of the rules:

    • A can ask a maximum of 5 questions.
    • A cannot ask for a direct translation of the word.
    • If A can guess the word within 5 questions, A wins.
  2. Player B is informed of the rules:

    • B must answer each question truthfully and to the best of…

Top comments (3)

Collapse
 
songoku_93 profile image
kakarot

A ChatGPT 插仢 is a versatile tool that extends the capabilities of the ChatGPT AI system, making it even more powerful and adaptable. These plugins serve as bridges between ChatGPT and various applications or platforms, enabling developers to customize and enhance the AI's functionality for specific use cases.

Collapse
 
amirfakour profile image
amir fakoor

Amazing dude.
but could you please check the github link? it shows 404

Collapse
 
m4r14 profile image
mark vachi

Sorry, I forgot to set it to public.