Update readme.md

This commit is contained in:
Shunyu Yao 2023-05-25 16:26:04 +01:00 committed by GitHub
parent ae67386a74
commit a819ac8032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,16 @@
# Tree of Thoughts (ToT) # Tree of Thoughts (ToT)
Code for paper [Tree of Thoughts: Deliberate Problem Solving with Large Language Models](https://arxiv.org/abs/2305.10601). Code for paper [Tree of Thoughts: Deliberate Problem Solving with Large Language Models](https://arxiv.org/abs/2305.10601).
Also check [its tweet thread](https://twitter.com/ShunyuYao12/status/1659357547474681857) in 1min. Also check [its tweet thread](https://twitter.com/ShunyuYao12/status/1659357547474681857) in 1min.
## Setup ## Setup
You need to first have an OpenAI API key and store it in the environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)). You need to first have an OpenAI API key and store it in the environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)).
If you use custom base url, set it by environment variable ``OPENAI_API_BASE`` (e.g. "https://api.openai.com/v1") If you use custom base url, set it by environment variable ``OPENAI_API_BASE`` (e.g. "https://api.openai.com/v1").
Note GPT-4 model is farily slow, please be patient (Note GPT-4 model is farily slow, please be patient.)
Package requirement: ``openai``, ``backoff``, ``sympy``, ``numpy``. Package requirement: ``openai``, ``backoff``, ``sympy``, ``numpy``.
@ -54,4 +55,4 @@ Feel free to contact shunyuyao.cs@gmail.com or open an issue if you have any que
archivePrefix={arXiv}, archivePrefix={arXiv},
primaryClass={cs.CL} primaryClass={cs.CL}
} }
``` ```