Spaces:
Sleeping
Sleeping
Arif
commited on
Commit
·
48d7cad
1
Parent(s):
89d2b21
Updated to run docker model, but due to bug in docker model runner it is not working but mlx works
Browse files- backend/app/config.py +5 -0
backend/app/config.py
CHANGED
|
@@ -92,6 +92,11 @@ class Settings(BaseSettings):
|
|
| 92 |
extra = "allow"
|
| 93 |
# Fix Pydantic warning about protected namespaces
|
| 94 |
protected_namespaces = ('settings_',)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
|
| 97 |
@lru_cache
|
|
|
|
| 92 |
extra = "allow"
|
| 93 |
# Fix Pydantic warning about protected namespaces
|
| 94 |
protected_namespaces = ('settings_',)
|
| 95 |
+
|
| 96 |
+
@property
|
| 97 |
+
def llm_model_name_docker(self) -> str:
|
| 98 |
+
"""Alias for llm_model (Docker Model Runner)"""
|
| 99 |
+
return self.llm_model
|
| 100 |
|
| 101 |
|
| 102 |
@lru_cache
|