Skip to content

John15263/talkwithchatgpt

Repository files navigation

TalkWithChatGPT Python Client

This repository originally contains Keyboard Maestro macros to interact with ChatGPT. It now also includes a simple Python script that lets you chat with ChatGPT from the command line.

Requirements

  • Python 3
  • requests library (pip install requests)
  • An OpenAI API key set in the environment variable OPENAI_API_KEY

Usage

Run the script from a terminal:

python chat.py

Type your message and press enter. Type exit or quit to end the conversation.

Keyboard Maestro Macros

The file "🎙️Talk with ChatGPT 1.0 Macros.kmmacros" contains a collection of macros for interacting with ChatGPT on macOS. A new file voice_macros.kmmacros provides two simple macros that use AppleScript GUI scripting to open and close the ChatGPT application's voice dialogue window. Import this file if you want hotkeys for quickly toggling voice chat. A helper macro in chat_cli.kmmacros launches the Python chat client via a hotkey (Ctrl+Option+K by default). Import the macro set into Keyboard Maestro to use it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages