pip package

This commit is contained in:
ysymyth 2023-07-05 18:08:25 -04:00
parent 24482e49ad
commit 0200df4189
4 changed files with 13 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
/*__pycache__/
dist/
src/tree_of_thoughts_llm.egg-info/
.env
*.pyc
*.DS_Store

View File

@ -20,9 +20,14 @@ Also check [its tweet thread](https://twitter.com/ShunyuYao12/status/16593575474
## Setup
- Set up OpenAI API key and store in environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)).
1. Set up OpenAI API key and store in environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)).
- Install dependencies and `tot` package (PyPI package coming soon):
2. Install `tot` package in two ways:
- Option 1: Install from PyPI
```bash
pip install tree-of-thought-llm
```
- Option 2: Install from source
```bash
git clone https://github.com/princeton-nlp/tree-of-thought-llm
cd tree-of-thought-llm

View File

@ -3,7 +3,7 @@ requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "tot"
name = "tree-of-thoughts-llm"
version = "0.1.0"
description = 'Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"'
readme = "README.md"
@ -32,4 +32,4 @@ dependencies = {file = ["requirements.txt"]}
where = ["src"] # list of folders that contain the packages (["."] by default)
[project.urls]
Homepage = "https://github.com/princeton-nlp/tree-of-thought-llm"
Homepage = "https://github.com/princeton-nlp/tree-of-thought-llm"

View File

@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
setuptools.setup(
name='tot',
name='tree-of-thoughts-llm',
author='Shunyu Yao',
author_email='shunyuyao.cs@gmail.com',
description='Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"',
@ -34,4 +34,4 @@ setuptools.setup(
'setuptools',
],
include_package_data=True,
)
)