-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (28 loc) · 2.03 KB
/
setup.py
File metadata and controls
30 lines (28 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from setuptools import setup, find_packages
import codecs
import os
VERSION = '0.0.11'
DESCRIPTION = 'AI-Chat-Tool is a tool that brings ChatGPT to the command line'
LONG_DESCRIPTION = '# AI-Chat-Tool\nAI-Chat-Tool is a tool that brings ChatGPT to the command line.\n\nTo use this tool you will need a ChatGPT api key.\n\n### Options\n- **--api-key**\n - (required) ChatGPT api key to use to access ChatGPT.\n- **--file**\n - (optional) File to write ChatGPT response to. Pass just the file(test.py) or the path and file(/first_dir/second_dir/test.py) \n- **--max-tokens**\n - (optional) The maximum number of tokens to generate in the completion. Default=7 \n- **--temperature**\n - (optional) What sampling temperature to use. Default=0\n- **--line**\n - (optional) Line on a file where ChatGPT output will start.\n\n### Example\n- Use AI-Chat-Tool to create a Python function that checks for even numbers\n\n**CLI**\n```\npython -m ai-chat-tool --api-key=$CHATGPTKEY --file=test.py --max-tokens=2000 --line=4\n```\n```\nWhat can I do for you today?: Can you create a python function that checks for even numbers?\nText written to test.py\n```\n \n \nFile created by AI-Chat-Tool \n**test.py**\n```python\n\n\n\ndef check_even(number):\n if number % 2 == 0:\n return True\n else:\n return False\n```'
# Setting up
setup(
name="ai-chat-tool",
version=VERSION,
author="matoval (Matthew Sandoval)",
author_email="<matovalcode@gmail.com>",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=LONG_DESCRIPTION,
packages=find_packages(),
url = "https://github.com/matoval/ai-chat-tool",
install_requires=['click', 'requests'],
keywords=['chatgpt', 'ai', 'chat'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
)