Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPT-4, Attachments, and Fix WSL response retrival #46

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

chavinlo
Copy link

@chavinlo chavinlo commented Nov 1, 2023

New Features:

  • Added GPT-4 and it's variants: Code Interpreter, Plugins, and DALL-E
  • Added Attachments, available for GPT-4 and GPT-4 Code Interpreter

Fixes:

  • Fixed response not being retrieved correctly in WSL (Windows Subsystem for Linux): Since it depends on the clipboard, the Windows clipboard override for some reason the WSL clipboard, I've added a parameter to directly grab the last chatbot response directly via the HTML object instead.

@chavinlo
Copy link
Author

chavinlo commented Nov 1, 2023

Quick example of how to use attachments with GPT-4 Vision:

from UnlimitedGPT import ChatGPT

session_token = "token_goes_here"

api = ChatGPT(
    session_token=session_token,
    clipboard_retrival=False, # WSL
    model=2 # GPT-4
)

x = api.send_message(
    message="Describe this image.",
    attachment="/home/ubuntu/UnlimitedGPT/snailchan.jpg",
    input_mode="SLOW"
)

print(x.response)

snailchan.jpg :
image

The image displays a vibrant and whimsical illustration of an animated character with predominantly pink and purple hues. The character has a playful appearance, featuring large, round eyes, one of which has a heart-shaped highlight, and vibrant purple hair with two ponytails. She's wearing what seems to be a pink outfit with heart motifs and rainbow patterns. The background is a dreamy blend of pastel colors with floating hearts, bubbles, and stars. On the left side, the word "-PIXELIZE-" is written in a stylized font. The overall mood of the image is cheerful and magical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant