Skip to content

Ayan-Nalawade/Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat

Access multiple models such as gpt-3/3.5, gpt-4, claude+, claude-instant, bard for free!

Replit Example && Poe-API is currently not working since poe.com has disabled the p-b token, the project will not receive any updates until I figure something out

CREDITS Poe-API - ading2210 (https://github.com/ading2210/poe-api)

For creating the program responsible to connect and "talk" with models in the website https://poe.com

FreeGPT4 - Lomusire (https://github.com/Lomusire/FreeGPT-4)

For creating a program capable to create tokens, They also own a very cool discord server, I would recommend joining it!

Bard-API - dsdanielpark (https://github.com/dsdanielpark/Bard-API)

For creating a program capable to connect and get responce from Bard.

Requirements and setup

Python3 Should be installed on your system

git clone https://github.com/Ayan-Nalawade/Chat.git

Install the repository

pip install -r requirements.txt

Setup Bard API

  1. Go to bard.google.com

  2. Sign in with a google/bard approved account (Required to use google bard api)

  3. Press F12 or ctrl + shift + i for google dev or console

  4. Session: Application → Cookies → Copy the value of __Secure-1PSID cookie.

  5. Open chatv1.1.py using any text editor, and replace 'CHANGE ME!' in variable bard_token to value aquired on point 4

Click Here for more info

Setup discord api

NOTE: Having it open on the website is required here and have the developer mode on, read below on how to turn it on!!

  1. Join the discord server: https://discord.gg/v5mqTMjmFn

  2. Press ctrl + shift + i to open chrome dev -> Then navigate to the 'network' tab image

  3. GRAB authentication: Go to any of the '-ai-chatroom', then type something, like !info image

  4. GRAB channel ID: Go to poe-token and copy the channel id

image

  1. Put information from STEP 3 into the auth variable in the chatv1.py
  2. Put information from STEP 4 into the id variable in the chatv1.py

image

How to turn developer mode on in discord

  1. Click on the settings on the user profile image
  2. Click on the advanced tab and then turn on developer mode image

Common Issues

Q: The program is not working, I am getting some errors related to modules

A: Make sure all the modules in requirements.txt are up to date, you can try to reinstall these, by typing in pip uninstall <module name> and then pip install <module name>

Notes and usage

Program by default will cycle through available and WORKING api's Each api will be connected for certain amount of requests to avoid overloading singular api

In-cli commands

!exit : Quite straight forward, exits the program and is the PROPER way to exit this program

<model_name> : <text>: Use this to talk to a model, if unsure, type help : help to get bot names

!index: Remove current working api's and re-grab the working api's, this may take a bit depending on your CPU, RAM and network speed

Currently Working on...

  1. Adding the ability to create images

If you have any further questions, or suggestions, feel free to create a thread

About

Access multiple models such as gpt-3/3.5, gpt-4, claude+, claude-instant, bard for free!

Resources

License

Stars

Watchers

Forks

Packages

No packages published