Skip to content

Commit

Permalink
Makes OPENAI_API_KEY required
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-dimov committed Apr 14, 2024
1 parent 05296a8 commit 1c1afa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ iCODES requires Python 3.11 or higher.

pip install icodes

Since the only supported LLM backend right now is OpenAI, you will need to export your OpenAI API key to the environment variable `OPENAI_API_KEY`. You can also set the `DEFAULT_MODEL` environment variable to the GPT model you wish to use (default value is "gpt-3.5-turbo" for a reasonable price / quality ratio.)

### Alternative installation

Or clone the repo:
Expand Down
2 changes: 1 addition & 1 deletion icds/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Settings(BaseSettings):
DEBUG: bool = False
DATABASE_URL: str = "sqlite:///./icodes.db"
OPENAI_API_KEY: str = ""
OPENAI_API_KEY: str
DEFAULT_MODEL: str = "gpt-3.5-turbo"


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 = "icodes"
version = "0.1.1"
version = "0.1.3"
description = "LLM-powered Git archeology tool (a.k.a. Intelligent Commit Ontology Distiller and Enhanced Search)"
authors = ["Jordan Dimov <[email protected]>", "Bayo Ade <[email protected]>"]
license = "CC0-1.0"
Expand Down

0 comments on commit 1c1afa2

Please sign in to comment.