Skip to content

Commit

Permalink
Maintain compatibility for the OPENAI_API_BASE environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrother committed Nov 10, 2023
1 parent 96b2c0e commit 974e8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
level=logging.INFO
)

client = AsyncOpenAI()
client = AsyncOpenAI(base_url=os.getenv("OPENAI_API_BASE", "https://api.openai.com/v1"))
MODEL = os.getenv("MODEL", "gpt-3.5-turbo")

# Define a dictionary to store messages for each user
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "chatgpt-tgbot"
version = "0.4.0"
version = "0.4.1"
description = ""
authors = ["ibrother <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 974e8b6

Please sign in to comment.