moved constant

This commit is contained in:
2026-03-06 11:36:07 +08:00
parent 3fc3d7288c
commit 07149e426e
3 changed files with 7 additions and 5 deletions

View File

@@ -12,5 +12,7 @@ from lang_agent.config.constants import (
PIPELINE_REGISTRY_PATH,
VALID_API_KEYS,
API_KEY_HEADER,
API_KEY_HEADER_NO_ERROR
API_KEY_HEADER_NO_ERROR,
_PROJECT_ROOT,
TY_BUILD_SCRIPT,
)

View File

@@ -15,3 +15,5 @@ API_KEY_HEADER = APIKeyHeader(name="Authorization", auto_error=True)
API_KEY_HEADER_NO_ERROR = APIKeyHeader(name="Authorization", auto_error=False)
VALID_API_KEYS = set(filter(None, os.environ.get("FAST_AUTH_KEYS", "").split(",")))
TY_BUILD_SCRIPT = osp.join(_PROJECT_ROOT, "lang_agent", "config", "ty_build_config.py")