Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yifan-Song793 committed Aug 26, 2023
0 parents commit 87677a7
Show file tree
Hide file tree
Showing 18 changed files with 35,011 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
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
7 changes: 7 additions & 0 deletions config.yaml
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:
Loading

0 comments on commit 87677a7

Please sign in to comment.