Upload config.py with huggingface_hub
Browse files
config.py
CHANGED
|
@@ -26,7 +26,6 @@ class Settings(BaseSettings):
|
|
| 26 |
|
| 27 |
# ============ API Keys (Optional for testing) ============
|
| 28 |
mistral_api_key: str = Field(default="test_mistral_key_12345", description="Mistral API key for LLM synthesis")
|
| 29 |
-
gemini_api_key: str = Field(default="test_gemini_key_12345", description="Google Gemini API key for vision validation")
|
| 30 |
hf_api_key: Optional[str] = Field(None, description="Hugging Face API key (optional)")
|
| 31 |
|
| 32 |
# ============ Database & Infrastructure ============
|
|
@@ -107,7 +106,7 @@ class Settings(BaseSettings):
|
|
| 107 |
"protected_namespaces": ("settings_",)
|
| 108 |
}
|
| 109 |
|
| 110 |
-
@field_validator("mistral_api_key"
|
| 111 |
@classmethod
|
| 112 |
def validate_api_keys(cls, v):
|
| 113 |
"""Ensure API keys are not placeholder values"""
|
|
|
|
| 26 |
|
| 27 |
# ============ API Keys (Optional for testing) ============
|
| 28 |
mistral_api_key: str = Field(default="test_mistral_key_12345", description="Mistral API key for LLM synthesis")
|
|
|
|
| 29 |
hf_api_key: Optional[str] = Field(None, description="Hugging Face API key (optional)")
|
| 30 |
|
| 31 |
# ============ Database & Infrastructure ============
|
|
|
|
| 106 |
"protected_namespaces": ("settings_",)
|
| 107 |
}
|
| 108 |
|
| 109 |
+
@field_validator("mistral_api_key")
|
| 110 |
@classmethod
|
| 111 |
def validate_api_keys(cls, v):
|
| 112 |
"""Ensure API keys are not placeholder values"""
|