Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for different api base url #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ In the `reverie/backend_server` folder (where `reverie.py` is located), create a
```
# Copy and paste your OpenAI API Key
openai_api_key = "<Your OpenAI API>"
# Edit the base URL if you are using a different OpenAI API
openai_api_base = "https://api.openai.com/v1"
# Put your name
key_owner = "<Name>"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from utils import *

openai.api_key = openai_api_key
openai.api_base = openai_api_base

def temp_sleep(seconds=0.1):
time.sleep(seconds)
Expand Down