diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7a72dbd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,32 @@ +# Byte-compiled / cache files +__pycache__/ +*.py[cod] +*.pyo +*.pyd + +# Virtual environments +venv/ +env/ +.venv/ +.env/ + +# Distribution / packaging +*.egg-info/ +build/ +dist/ + +# Git and other VCS +.git/ +.gitignore + +# Editor files +*.swp +*.swo +*.bak +*.tmp +.DS_Store +.idea/ +.vscode/ + +# Secrets (if you’re using .env for API keys etc.) +.env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff877ab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["python"] diff --git a/utils/call_llm.py b/utils/call_llm.py index cde3822..a01929e 100644 --- a/utils/call_llm.py +++ b/utils/call_llm.py @@ -56,7 +56,7 @@ def call_llm(prompt: str, use_cache: bool = True) -> str: # You can comment the previous line and use the AI Studio key instead: client = genai.Client( - api_key=os.getenv("GEMINI_API_KEY", ""), + api_key=os.getenv("GEMINI_API_KEY", "AIzaSyDzXuRp0hP6wAWUFTGRrUPDiKWffUm7vGk"), ) model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25") # model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")