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.
  • --temperature
    • (optional) What sampling temperature to use.

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
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.9.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

ai_chat_tool-0.0.9-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file ai-chat-tool-0.0.9.tar.gz.

File metadata

  • Download URL: ai-chat-tool-0.0.9.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for ai-chat-tool-0.0.9.tar.gz
Algorithm Hash digest
SHA256 24caa85f6decc92893f2f829a02fc72f3147fe37f1c15926320dd8e9a0308148
MD5 b4089e909ba7d844c8f90d1e16c712a2
BLAKE2b-256 0309745f2d5aeb5cc1dde26ea0c800f6179e73bbf53694f094a2194e29a7309f

See more details on using hashes here.

File details

Details for the file ai_chat_tool-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: ai_chat_tool-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for ai_chat_tool-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 95b2626bb034d9b12f0725403aeb8f6eda69970b4b26bdb2beae8a8f043182b5
MD5 c2736343610b65015a982cd07221e232
BLAKE2b-256 d5e17ddfaf65bc09c0ffb49352666c9c4b176c9a1aa105e4f716eb5e83fdfc8e

See more details on using hashes here.

Supported by

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