Skip to content

Manamama/Sydney-Pi-Images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Sydney-Py-Full: Sydney Client with Image and Context Support

This project is a Python script that uses the Sydney Client to interact with OpenAI's Sydney API. It supports sending image prompts by uploading local files or providing URLs.

Features

  • Interact with the Sydney API using text prompts.
  • Send image prompts by uploading a local file or providing a URL.
  • Display responses from Sydney in the terminal with Markdown formatting.

Dependencies

  • Python 3.7 or higher
  • rich library for rendering Markdown in the terminal
  • sydney-py library for interacting with the Sydney aka Bing's API
  • tkinter library for showing a file picker dialog

Usage

  1. Git clone this repository and go to the folder.
  2. Run the script in your terminal:
python chatsydney_full.py

Enter a text prompt to send to Sydney. For example: User: Tell me a joke.

If you want to send an image prompt, start your input with !image, followed by the URL or local file path of the image, and then the text prompt. For example:

User: !image https://example.com/image.jpg What animal is this?

or: Screenshot from 2024-01-23 14-57-30

If you don’t provide a URL after !image, the script will show a file picker dialog for you to select a local file.

The script will display Sydney’s response in the terminal with Markdown formatting. Screenshot from 2024-01-23 14-56-52

Other commands: !context (works much as the !image above) !reset !exit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages