Skip to content

Commit

Permalink
add name and revision
Browse files Browse the repository at this point in the history
  • Loading branch information
tabris2015 committed Nov 29, 2023
1 parent 075f789 commit 7462ac2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class GPTModel(str, Enum):


class Settings(BaseSettings):
service_name: str = "Awesome Projects"
k_revision: str = "Local"
log_level: str = "DEBUG"
openai_key: str
model: GPTModel = GPTModel.gpt_3_5_turbo
Expand Down
7 changes: 6 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
from src.llm_service import TemplateLLM
from src.prompts import ProjectParams
from src.parsers import ProjectIdeas
from src.config import get_settings

_SETTINGS = get_settings()

app = FastAPI()
app = FastAPI(
title=_SETTINGS.service_name,
version=_SETTINGS.k_revision
)

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit 7462ac2

Please sign in to comment.