Spaces:
Build error
Build error
Fix requirements and Firebase config
Browse files- backend/requirements.txt +15 -31
- backend/src/config/settings.py +5 -7
backend/requirements.txt
CHANGED
|
@@ -1,44 +1,28 @@
|
|
| 1 |
# FastAPI & Server
|
| 2 |
-
fastapi=
|
| 3 |
-
uvicorn[standard]=
|
| 4 |
-
python-multipart=
|
| 5 |
|
| 6 |
# AI Services
|
| 7 |
-
groq=
|
| 8 |
-
huggingface_hub=
|
| 9 |
|
| 10 |
# Database & Vector
|
| 11 |
-
|
| 12 |
-
qdrant-client==1.12.1
|
| 13 |
-
firebase-admin==6.5.0
|
| 14 |
|
| 15 |
# Deployment
|
| 16 |
-
boto3=
|
| 17 |
-
python-gitlab==1.18.0
|
| 18 |
|
| 19 |
# Utilities
|
| 20 |
-
pydantic=
|
| 21 |
-
pydantic-settings=
|
| 22 |
-
python-dotenv=
|
| 23 |
-
httpx=
|
| 24 |
-
tenacity=
|
| 25 |
-
tiktoken==0.7.0
|
| 26 |
-
|
| 27 |
-
# Zip & File handling
|
| 28 |
-
zipfile36==0.1.3
|
| 29 |
-
python-magic==0.4.27
|
| 30 |
|
| 31 |
# Security
|
| 32 |
-
|
| 33 |
-
slowapi==0.1.9
|
| 34 |
|
| 35 |
# Testing
|
| 36 |
-
pytest=
|
| 37 |
-
pytest-asyncio=
|
| 38 |
-
pytest-cov==5.0.0
|
| 39 |
-
httpx==0.27.2
|
| 40 |
-
|
| 41 |
-
# Development
|
| 42 |
-
black==24.8.0
|
| 43 |
-
ruff==0.6.9
|
| 44 |
-
mypy==1.11.2
|
|
|
|
| 1 |
# FastAPI & Server
|
| 2 |
+
fastapi>=0.115.0
|
| 3 |
+
uvicorn[standard]>=0.30.0
|
| 4 |
+
python-multipart>=0.0.12
|
| 5 |
|
| 6 |
# AI Services
|
| 7 |
+
groq>=0.8.0
|
| 8 |
+
huggingface_hub>=0.26.0
|
| 9 |
|
| 10 |
# Database & Vector
|
| 11 |
+
firebase-admin>=6.5.0
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Deployment
|
| 14 |
+
boto3>=1.35.0
|
|
|
|
| 15 |
|
| 16 |
# Utilities
|
| 17 |
+
pydantic>=2.9.0
|
| 18 |
+
pydantic-settings>=2.5.0
|
| 19 |
+
python-dotenv>=1.0.0
|
| 20 |
+
httpx>=0.27.0
|
| 21 |
+
tenacity>=9.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Security
|
| 24 |
+
slowapi>=0.1.9
|
|
|
|
| 25 |
|
| 26 |
# Testing
|
| 27 |
+
pytest>=8.3.0
|
| 28 |
+
pytest-asyncio>=0.24.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
backend/src/config/settings.py
CHANGED
|
@@ -9,8 +9,8 @@ from functools import lru_cache
|
|
| 9 |
class Settings(BaseSettings):
|
| 10 |
# Application
|
| 11 |
APP_NAME: str = "AmkyawDev Coder Backend"
|
| 12 |
-
ENVIRONMENT: str = "
|
| 13 |
-
DEBUG: bool =
|
| 14 |
|
| 15 |
# CORS
|
| 16 |
CORS_ORIGINS: List[str] = ["*"]
|
|
@@ -25,13 +25,11 @@ class Settings(BaseSettings):
|
|
| 25 |
HF_INFERENCE_ENDPOINT: str = ""
|
| 26 |
|
| 27 |
# Firebase
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
FIREBASE_DATABASE_URL: str = ""
|
| 30 |
|
| 31 |
-
# Vector Database
|
| 32 |
-
CHROMA_HOST: str = "localhost"
|
| 33 |
-
CHROMA_PORT: int = 8000
|
| 34 |
-
|
| 35 |
# Deployment
|
| 36 |
VERCEL_TOKEN: str = ""
|
| 37 |
NETLIFY_TOKEN: str = ""
|
|
|
|
| 9 |
class Settings(BaseSettings):
|
| 10 |
# Application
|
| 11 |
APP_NAME: str = "AmkyawDev Coder Backend"
|
| 12 |
+
ENVIRONMENT: str = "production"
|
| 13 |
+
DEBUG: bool = False
|
| 14 |
|
| 15 |
# CORS
|
| 16 |
CORS_ORIGINS: List[str] = ["*"]
|
|
|
|
| 25 |
HF_INFERENCE_ENDPOINT: str = ""
|
| 26 |
|
| 27 |
# Firebase
|
| 28 |
+
FIREBASE_API_KEY: str = "AIzaSyCDNASzWo7Ok_h7EFkQvYrowIn6KyEntqU"
|
| 29 |
+
FIREBASE_PROJECT_ID: str = "coder-agent-54bb7"
|
| 30 |
+
FIREBASE_STORAGE_BUCKET: str = "coder-agent-54bb7.firebasestorage.app"
|
| 31 |
FIREBASE_DATABASE_URL: str = ""
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Deployment
|
| 34 |
VERCEL_TOKEN: str = ""
|
| 35 |
NETLIFY_TOKEN: str = ""
|