← Về thư mục
openai4s/server/volcengine_connector.py
- ProvisioningMaterial · class · L30-L41 — class ProvisioningMaterial
- _public_identity · function · L44-L57 — def _public_identity(payload: Mapping[str, Any]) -> dict[str, Any]
- _public_plans · function · L60-L83 — def _public_plans(plans: Sequence[Mapping[str, Any]]) -> list[dict[str, Any]]
- _usage_error_code · function · L86-L95 — def _usage_error_code(value: Any) -> str
- _public_usage · function · L98-L130 — def _public_usage(payload: Mapping[str, Any]) -> dict[str, Any]
- _profile_key_state · function · L133-L154 — def _profile_key_state(profile: Mapping[str, Any]) -> str
- _decorate_plan_access · function · L157-L192 — def _decorate_plan_access( plans: Sequence[Mapping[str, Any]], profiles: Sequence[Mapping[str, Any]], *, profiles_known: bool, ) -> list[dict[str, Any]]
- _plan_usage_rows · function · L195-L208 — def _plan_usage_rows( usage: Mapping[str, Any], plan_key: str ) -> list[Mapping[str, Any]]
- _quota_exhausted · function · L211-L228 — def _quota_exhausted(usage: Mapping[str, Any], plan_key: str) -> bool
- _access_projection · function · L231-L379 — def _access_projection( plans: Sequence[Mapping[str, Any]], usage: Mapping[str, Any], profiles: Sequence[Mapping[str, Any]], *, profiles_error: str = "", ) -> dict[str, Any]
- VolcengineConnectorService · class · L382-L1026 — class VolcengineConnectorService
- init · method · L385-L409 — def init( self, bridge: ArkCliBridge | None = None, *, cache_ttl_s: float = _CACHE_TTL_S, clock: Callable[[], float] = time.monotonic, wall_clock: Callable[[], float] = time.time, ) -> None
- _remember_key_choice · method · L411-L428 — def _remember_key_choice(self, profile_name: str, key_id: Any) -> str
- _remember_endpoint_choice · method · L430-L443 — def _remember_endpoint_choice(self, profile_name: str, endpoint_id: str) -> str
- _probe_profile_keys · method · L445-L525 — def _probe_profile_keys( self, profiles: Sequence[Mapping[str, Any]] ) -> list[dict[str, Any]]
- _public_login · method · L527-L543 — def _public_login(self) -> dict[str, Any]
- connection · method · L545-L581 — def connection(self, *, force: bool = False) -> dict[str, Any]
- _scan · method · L583-L666 — def _scan(self) -> dict[str, Any]
- leg · function · L621-L625 — def leg(call: Callable[[], Any], fallback: Any) -> tuple[Any, str]
- _cache · method · L668-L672 — def _cache(self, payload: Mapping[str, Any]) -> dict[str, Any]
- invalidate · method · L674-L677 — def invalidate(self) -> None
- refresh · method · L679-L686 — def refresh(self) -> dict[str, Any]
- start_device_login · method · L688-L730 — def start_device_login(self) -> dict[str, Any]
- complete_device_login · method · L732-L787 — def complete_device_login(self, code: Any) -> dict[str, Any]
- cancel_login · method · L789-L798 — def cancel_login(self) -> dict[str, Any]
- logout · method · L800-L806 — def logout(self) -> dict[str, Any]
- _probed_snapshot · method · L808-L810 — def _probed_snapshot(self) -> list[dict[str, Any]]
- _select_probed_key · method · L813-L834 — def _select_probed_key(profile_row: Mapping[str, Any] | None) -> Any
- provisioning_material · method · L836-L1026 — def provisioning_material( self, plan_key: Any = None, key_choice: Any = None, endpoint_choice: Any = None, ) -> ProvisioningMaterial