Skip to main content

AI-Chat-Tool is a tool that brings ChatGPT to the command line

Project description

AI-Chat-Tool

AI-Chat-Tool is a tool that brings ChatGPT to the command line.

To use this tool you will need a ChatGPT api key.

Options

  • --api-key
    • (required) ChatGPT api key to use to access ChatGPT.
  • --file
    • (optional) File to write ChatGPT response to. Pass just the file(test.py) or the path and file(/first_dir/second_dir/test.py)
  • --max-tokens
    • (optional) The maximum number of tokens to generate in the completion. Default=7
  • --temperature
    • (optional) What sampling temperature to use. Default=0
  • --line
    • (optional) Line on a file where ChatGPT output will start.

Example

  • Use AI-Chat-Tool to create a Python function that checks for even numbers

CLI

python -m ai-chat-tool --api-key=$CHATGPTKEY --file=test.py --max-tokens=2000 --line=4
What can I do for you today?: Can you create a python function that checks for even numbers?
Text written to test.py

File created by AI-Chat-Tool test.py

def check_even(number):
    if number % 2 == 0:
        return True
    else:
        return False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai-chat-tool-0.0.11.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

ai_chat_tool-0.0.11-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page