mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
docker setup
This commit is contained in:
@@ -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
|
||||
+11
@@ -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"]
|
||||
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user