← Về thư mục
openai4s/host/endpoints.py
- EndpointStore · class · L17-L20 — class EndpointStore(Protocol)
- list_endpoints · method · L18-L18 — def list_endpoints(self) -> list[dict]
- upsert_endpoint · method · L20-L20 — def upsert_endpoint(self, name: str, **fields) -> None
- fallback_port · function · L27-L34 — def fallback_port(lo: int, hi: int) -> int
- free_port · function · L37-L59 — def free_port(lo: int = 20000, hi: int = 29999, tries: int | None = None) -> int
- endpoint_fingerprint · function · L62-L67 — def endpoint_fingerprint(url, start, stop, live, skill, credential) -> str
- _is_own_managed_endpoint · function · L70-L85 — def _is_own_managed_endpoint(url: str, own_port: int | None) -> bool
- probe_ready · function · L88-L138 — def probe_ready( url: str, live_route: str, timeout: float = 2.0, own_port: int | None = None ) -> bool
- EndpointService · class · L141-L266 — class EndpointService
- init · method · L144-L155 — def init( self, store: EndpointStore, *, allocate_port: Callable[[], int] = free_port, readiness_probe: Callable[..., bool] = probe_ready, fingerprint: Callable[..., str] = endpoint_fingerprint, ) -> None
- free_port · method · L157-L158 — def free_port(self) -> int
- list · method · L160-L161 — def list(self) -> list[dict]
- register · method · L163-L245 — def register(self, spec: dict) -> dict
- status · method · L247-L251 — def status(self, name: str) -> dict
- probe · method · L253-L266 — def probe(self, name: str) -> dict