Spaces:
Runtime error
Runtime error
GitHub Actions commited on
Commit ·
467f9ea
1
Parent(s): 9662240
Deploy da4fe1c
Browse files- app/core/config.py +4 -2
- requirements.txt +21 -18
app/core/config.py
CHANGED
|
@@ -10,8 +10,10 @@ class Settings(BaseSettings):
|
|
| 10 |
GROQ_API_KEY: Optional[str] = None
|
| 11 |
OLLAMA_BASE_URL: Optional[str] = None
|
| 12 |
OLLAMA_MODEL: Optional[str] = None
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
GROQ_TRANSCRIBE_MODEL: str = "whisper-large-v3-turbo"
|
| 16 |
|
| 17 |
# Vector
|
|
|
|
| 10 |
GROQ_API_KEY: Optional[str] = None
|
| 11 |
OLLAMA_BASE_URL: Optional[str] = None
|
| 12 |
OLLAMA_MODEL: Optional[str] = None
|
| 13 |
+
# Groq shut down llama-3.1-8b-instant and llama-3.3-70b-versatile on 2026-08-16;
|
| 14 |
+
# these are the replacements its deprecation notice recommends.
|
| 15 |
+
GROQ_MODEL_DEFAULT: str = "openai/gpt-oss-20b"
|
| 16 |
+
GROQ_MODEL_LARGE: str = "openai/gpt-oss-120b"
|
| 17 |
GROQ_TRANSCRIBE_MODEL: str = "whisper-large-v3-turbo"
|
| 18 |
|
| 19 |
# Vector
|
requirements.txt
CHANGED
|
@@ -5,29 +5,32 @@
|
|
| 5 |
# mlflow/dagshub are intentionally excluded: they add ~300MB to the Docker
|
| 6 |
# image and are imported lazily only when DAGSHUB_TOKEN is set. Install them
|
| 7 |
# in requirements.local.txt for local experiment tracking.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
fastapi
|
| 10 |
-
uvicorn[standard]
|
| 11 |
-
uvloop
|
| 12 |
-
python-multipart
|
| 13 |
-
pydantic-settings
|
| 14 |
-
langgraph
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
slowapi>=0.1.9
|
| 21 |
# presidio-analyzer was removed (Issue 4): spaCy-based NLP added 50-100ms to every
|
| 22 |
# request for near-zero real-world PII risk. Replaced with six compiled regex
|
| 23 |
# patterns in sanitizer.py that run in microseconds. See copilot-instructions.md.
|
| 24 |
-
tenacity
|
| 25 |
-
python-jose[cryptography]
|
| 26 |
-
google-genai
|
| 27 |
# fastembed: powers BM25 sparse retrieval (Stage 2). Qdrant/bm25 vocabulary
|
| 28 |
# downloads ~5 MB on first use then runs fully local — no GPU, no network at query time.
|
| 29 |
-
fastembed
|
| 30 |
# toon_format: pinned to v0.9.0-beta.1 tag for supply chain security.
|
| 31 |
toon_format @ git+https://github.com/toon-format/toon-python.git@v0.9.0-beta.1
|
| 32 |
-
kokoro
|
| 33 |
-
soundfile
|
|
|
|
| 5 |
# mlflow/dagshub are intentionally excluded: they add ~300MB to the Docker
|
| 6 |
# image and are imported lazily only when DAGSHUB_TOKEN is set. Install them
|
| 7 |
# in requirements.local.txt for local experiment tracking.
|
| 8 |
+
#
|
| 9 |
+
# Pinned exactly, at the versions the last good deploy (2026-05-07) resolved to: the
|
| 10 |
+
# Space reinstalls on every rebuild, and qdrant-client 1.19 removed NamedSparseVector,
|
| 11 |
+
# which vector_store.py imports, so an unpinned rebuild fails at startup.
|
| 12 |
|
| 13 |
+
fastapi==0.136.1
|
| 14 |
+
uvicorn[standard]==0.46.0
|
| 15 |
+
uvloop==0.22.1
|
| 16 |
+
python-multipart==0.0.27
|
| 17 |
+
pydantic-settings==2.14.0
|
| 18 |
+
langgraph==1.1.10
|
| 19 |
+
qdrant-client==1.17.1
|
| 20 |
+
groq==1.2.0
|
| 21 |
+
httpx==0.28.1
|
| 22 |
+
numpy==2.4.4
|
| 23 |
+
slowapi==0.1.9
|
|
|
|
| 24 |
# presidio-analyzer was removed (Issue 4): spaCy-based NLP added 50-100ms to every
|
| 25 |
# request for near-zero real-world PII risk. Replaced with six compiled regex
|
| 26 |
# patterns in sanitizer.py that run in microseconds. See copilot-instructions.md.
|
| 27 |
+
tenacity==9.1.4
|
| 28 |
+
python-jose[cryptography]==3.5.0
|
| 29 |
+
google-genai==1.75.0
|
| 30 |
# fastembed: powers BM25 sparse retrieval (Stage 2). Qdrant/bm25 vocabulary
|
| 31 |
# downloads ~5 MB on first use then runs fully local — no GPU, no network at query time.
|
| 32 |
+
fastembed==0.8.0
|
| 33 |
# toon_format: pinned to v0.9.0-beta.1 tag for supply chain security.
|
| 34 |
toon_format @ git+https://github.com/toon-format/toon-python.git@v0.9.0-beta.1
|
| 35 |
+
kokoro==0.9.4
|
| 36 |
+
soundfile==0.13.1
|