Spaces:
Sleeping
Sleeping
Claude commited on
Fix: Make pdf_source_path optional in config
Browse files- pdf_source_path is not needed for API server operation
- This was causing 503 errors because Render.com didn't have this env var
- Changed from required field to Optional[str] = None
- utils/config.py +1 -1
utils/config.py
CHANGED
|
@@ -18,7 +18,7 @@ class Settings(BaseSettings):
|
|
| 18 |
collection_name: str = "financial_papers"
|
| 19 |
|
| 20 |
# PDF Processing Settings
|
| 21 |
-
pdf_source_path: str
|
| 22 |
chunk_size: int = 1000
|
| 23 |
chunk_overlap: int = 200
|
| 24 |
|
|
|
|
| 18 |
collection_name: str = "financial_papers"
|
| 19 |
|
| 20 |
# PDF Processing Settings
|
| 21 |
+
pdf_source_path: Optional[str] = None
|
| 22 |
chunk_size: int = 1000
|
| 23 |
chunk_overlap: int = 200
|
| 24 |
|