← Về thư mục
openai4s/config.py
- _load_dotenv · function · L21-L60 — def _load_dotenv() -> None
- is_placeholder_api_key · function · L84-L87 — def is_placeholder_api_key(k: str | None) -> bool
- _default_data_dir · function · L90-L94 — def _default_data_dir() -> Path
- provider_env_api_key · function · L108-L125 — def provider_env_api_key(provider: str | None) -> str
- LLMConfig · class · L129-L213 — class LLMConfig
- post_init · method · L162-L213 — def post_init(self) -> None: # Provider ids may be hyphenated; environment-variable names use the # shell-safe underscore form (
lab-openai -> LAB_OPENAI).
- _resolve · function · L167-L170 — def _resolve(field_val: str, specific: str, generic: str) -> str
- _resolve_api_key · function · L172-L181 — def _resolve_api_key(field_val: str, specific: str, generic: str) -> str
- _env_flag · function · L216-L221 — def _env_flag(name: str, default: bool) -> bool
- _strict_env_flag · function · L228-L248 — def _strict_env_flag(name: str, default: bool = False) -> bool
- _strict_env_choice · function · L251-L258 — def _strict_env_choice(name: str, default: str, allowed: frozenset[str]) -> str
- _strict_env_int · function · L261-L281 — def _strict_env_int( name: str, default: int, *, minimum: int, maximum: int, ) -> int
- _strict_env_float · function · L284-L307 — def _strict_env_float( name: str, default: float, *, minimum: float, maximum: float, ) -> float
- _auto_mode_enabled · function · L310-L329 — def _auto_mode_enabled() -> bool
- _auto_mode_deployment_explicit_fields · function · L339-L353 — def _auto_mode_deployment_explicit_fields() -> tuple[str, ...]
- _auto_mode_deployment_explicit · function · L356-L359 — def _auto_mode_deployment_explicit() -> bool
- SecurityConfig · class · L363-L451 — class SecurityConfig
- post_init · method · L420-L422 — def post_init(self) -> None
- code_gate_enabled · method · L425-L426 — def code_gate_enabled(self) -> bool
- use_llm_classifier · method · L429-L430 — def use_llm_classifier(self) -> bool
- allowlisted_domains · method · L440-L447 — def allowlisted_domains(self) -> frozenset[str]
- egress_enforced · method · L450-L451 — def egress_enforced(self) -> bool
- _egress_groups · function · L454-L462 — def _egress_groups() -> list[dict]
- ShareConfig · class · L466-L500 — class ShareConfig
- post_init · method · L486-L490 — def post_init(self) -> None
- configured · method · L493-L494 — def configured(self) -> bool
- public_url · method · L496-L500 — def public_url(self, share_id: str) -> str
- _data_roots · function · L518-L526 — def _data_roots() -> list[Path]
- data_root_policies · function · L529-L546 — def data_root_policies() -> list[tuple[Path, bool]]
- _canonical_http_origin · function · L549-L597 — def _canonical_http_origin(raw: str) -> str
- _trusted_proxy_origins · function · L600-L613 — def _trusted_proxy_origins() -> tuple[str, ...]
- RoadmapFeatureFlags · class · L617-L677 — class RoadmapFeatureFlags
- post_init · method · L672-L677 — def post_init(self) -> None: # Dataclasses do not enforce annotations for direct construction. Do # not let
1 or a non-empty string become an accidental enable.
- AutoModeBudgets · class · L710-L838 — class AutoModeBudgets
- post_init · method · L793-L824 — def post_init(self) -> None
- field_authority · method · L826-L838 — def field_authority(self, name: str) -> str
- AutoModeConfig · class · L842-L916 — class AutoModeConfig
- post_init · method · L871-L912 — def post_init(self) -> None
- preset · method · L915-L916 — def preset(self) -> str
- Config · class · L920-L1025 — class Config
- ensure_dirs · method · L982-L993 — def ensure_dirs(self) -> None
- logs_dir · method · L996-L997 — def logs_dir(self) -> Path
- artifacts_dir · method · L1000-L1001 — def artifacts_dir(self) -> Path
- shares_dir · method · L1004-L1005 — def shares_dir(self) -> Path
- compaction_dir · method · L1008-L1009 — def compaction_dir(self) -> Path
- db_path · method · L1012-L1013 — def db_path(self) -> Path
- tape_path · method · L1016-L1017 — def tape_path(self) -> Path
- pidfile · method · L1020-L1021 — def pidfile(self) -> Path
- statefile · method · L1024-L1025 — def statefile(self) -> Path
- get_config · function · L1031-L1044 — def get_config(*, initialize_dirs: bool = True) -> Config