mirror of
https://github.com/princeton-nlp/tree-of-thought-llm
synced 2024-11-16 05:24:05 +00:00
pip package
This commit is contained in:
parent
24482e49ad
commit
0200df4189
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
/*__pycache__/
|
/*__pycache__/
|
||||||
|
dist/
|
||||||
|
src/tree_of_thoughts_llm.egg-info/
|
||||||
.env
|
.env
|
||||||
*.pyc
|
*.pyc
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
@ -20,9 +20,14 @@ Also check [its tweet thread](https://twitter.com/ShunyuYao12/status/16593575474
|
|||||||
|
|
||||||
|
|
||||||
## Setup
|
## 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
|
```bash
|
||||||
git clone https://github.com/princeton-nlp/tree-of-thought-llm
|
git clone https://github.com/princeton-nlp/tree-of-thought-llm
|
||||||
cd tree-of-thought-llm
|
cd tree-of-thought-llm
|
||||||
|
@ -3,7 +3,7 @@ requires = ["setuptools >= 61.0.0"]
|
|||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tot"
|
name = "tree-of-thoughts-llm"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = 'Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"'
|
description = 'Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"'
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
|
|||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='tot',
|
name='tree-of-thoughts-llm',
|
||||||
author='Shunyu Yao',
|
author='Shunyu Yao',
|
||||||
author_email='shunyuyao.cs@gmail.com',
|
author_email='shunyuyao.cs@gmail.com',
|
||||||
description='Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"',
|
description='Official Implementation of "Tree of Thoughts: Deliberate Problem Solving with Large Language Models"',
|
||||||
|
Loading…
Reference in New Issue
Block a user