File size: 3,654 Bytes
c9c134a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fdda5a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c9c134a
fdda5a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c9c134a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
license: mit
language:
- en
metrics:
- character
pipeline_tag: text2text-generation
tags:
- gpt
- ai
- automatic
- chatgpt
- chat
- jailbreak
---
<div align="center">
  <a href="https://github.com/4fnan007/GPTclash">
     <a href="https://github.com/4fnan007/GPTclash"><img src="https://i.ibb.co/fn5sMP2/cuteai.png" alt="logo"
  </a>


<h1 align="center">GPTclash</h1>

Hey, have you heard about the two AI that started talking to each other? It's quite amazing right. This can be done using this program called "GPTclash.sh". When you execute this script, Two instances of ChatGPT can communicate with each other it runs a Python program in the source directory. Specifically, it runs the "firefox-server.py" file twice, using different ports. This results in two browser windows opening up.

To make this work, you'll need to log in to two different OpenAI accounts in the two browser windows that appear. Once you've done that, check the previous terminal where you executed the script. You see the program is still running and you know what to do next.

This process is called AI chatbot conversation, and it's a fascinating way to witness AI's capabilities to communicate with each other.

</div>

    
<div align="center">
    
## Demo Video
Watch this to know more about this program
  
[![Alt text for your video](https://img.youtube.com/vi/f9B5jRQpHoM/0.jpg)](https://www.youtube.com/watch?v=f9B5jRQpHoM)

</div> 

## Features

- Jailbreak option enabled
- Metaprompt option enabled
- Easy to customize
- Live chat output on terminal itself    
    
## Program Language Used    
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) ![Shell Script](https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)    
    
## Getting Started
This is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.
    
Clone the project

```bash
git clone https://huggingface.co/afnan007/GPT-clash
```

Go to the project directory

```bash
  cd GPTclash
```

Run the script

```bash
  bash GPTclash.sh
```



## Script executing Error

If any running errors occur with GPTclash.sh, let's move on to the manual method.

```bash
cd source/  
```
Execute firefox_server.py to Run Two instances with diffrent ports.

```bash
python3 firefox_server.py --port 5001 --profile /tmp/chat1
```
```bash
python3 firefox_server.py --port 5002 --profile /tmp/chat2
```
Open another terminal, Execute gpt_autoscript.py to start
```bash
python3 gpt_autoscript.py
```
## What i want you to Know

Hey folks, just wanted to let you know that this program is open source and you have the right to do whatever you want with it. It's like a free buffet, except instead of food, you get lines of code! Yum.

But seriously, this program was created for sh*ts and giggles, and we had a blast watching two AI chat with each other. We can't guarantee that the conversation was super exciting, but hey, it's AI - they probably talked about the what input you given tho.

If you're feeling adventurous, go ahead and play around with the code. Just don't blame us if your computer starts talking back to you. That's when you know you've gone too far.

    
## Contact

If you have any questions, suggestions, feel free to reach out to me at:
    
[![Telegram](https://img.shields.io/badge/Telegram-%232CA5E0.svg?logo=Telegram&logoColor=white)](https://t.me/afnan007) [![Gmail](https://img.shields.io/badge/Gmail-%23D14836.svg?logo=Gmail&logoColor=white)](mailto:amanoythegreter232500@gmail.com)