Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai-chat-tool

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-chat-tool

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

  • 0.0.11
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc