forked from Yifan-Song793/RestGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 87677a7
Showing
18 changed files
with
35,011 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# RestGPT | ||
|
||
RestGPT: An LLM-Based Autonomous Agent Controlling Real-World Applications via RESTful APIs | ||
|
||
The data of our proposed RestBench is in `datasets` folder. | ||
|
||
## Setup | ||
|
||
```bash | ||
pip install langchain colorama tiktoken spotipy openai | ||
``` | ||
|
||
create `logs` folder | ||
|
||
Get OpenAI key from OpenAI, TMDB key from https://developer.themoviedb.org/docs/getting-started, and Spotify key from https://developer.spotify.com/documentation/web-api | ||
|
||
Fill in your own key in `config.yaml` | ||
|
||
## (Optional) Initialize the Spotify Environment | ||
|
||
**WARNING: this will remove all your data from spotify!** | ||
|
||
```python | ||
python init_spotify.py | ||
``` | ||
|
||
## Run | ||
|
||
```bash | ||
# TMDB | ||
python run_tmdb.py | ||
|
||
# Spotify,please open the Spotify on your device | ||
python run_spotify.py | ||
``` | ||
|
||
The log file will be in the `logs` folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
openai_api_key: | ||
|
||
tmdb_access_token: | ||
|
||
spotipy_client_id: | ||
spotipy_client_secret: | ||
spotipy_redirect_uri: |
Oops, something went wrong.