Spaces:
Running
Running
Z User commited on
Commit Β·
48b0407
1
Parent(s): 5249791
π Fix: Add APP_VERSION to code.config exports
Browse files- Added APP_VERSION to import statement in __init__.py
- Added APP_VERSION to __all__ export list
- Fixes ImportError on startup
- code/config/__init__.py +2 -0
code/config/__init__.py
CHANGED
|
@@ -20,6 +20,7 @@ from typing import Any
|
|
| 20 |
# ββ Re-export constants for backward compatibility βββββββββββββββββββββ
|
| 21 |
from code.config.constants import (
|
| 22 |
APP_TITLE,
|
|
|
|
| 23 |
DEFAULT_MAX_TOKENS,
|
| 24 |
DEFAULT_MODEL_KEY,
|
| 25 |
DEFAULT_TEMPERATURE,
|
|
@@ -244,6 +245,7 @@ def load_settings(project_dir: Path | None = None) -> Settings:
|
|
| 244 |
__all__ = [
|
| 245 |
# Constants
|
| 246 |
"APP_TITLE",
|
|
|
|
| 247 |
"DEFAULT_MAX_TOKENS",
|
| 248 |
"DEFAULT_MODEL_KEY",
|
| 249 |
"DEFAULT_TEMPERATURE",
|
|
|
|
| 20 |
# ββ Re-export constants for backward compatibility βββββββββββββββββββββ
|
| 21 |
from code.config.constants import (
|
| 22 |
APP_TITLE,
|
| 23 |
+
APP_VERSION,
|
| 24 |
DEFAULT_MAX_TOKENS,
|
| 25 |
DEFAULT_MODEL_KEY,
|
| 26 |
DEFAULT_TEMPERATURE,
|
|
|
|
| 245 |
__all__ = [
|
| 246 |
# Constants
|
| 247 |
"APP_TITLE",
|
| 248 |
+
"APP_VERSION",
|
| 249 |
"DEFAULT_MAX_TOKENS",
|
| 250 |
"DEFAULT_MODEL_KEY",
|
| 251 |
"DEFAULT_TEMPERATURE",
|