MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_codex2api_services

Function get_codex2api_services

src/database/crud.py:846–854  ·  view source on GitHub ↗

获取 Codex2API 服务列表

(
    db: Session,
    enabled: Optional[bool] = None,
)

Source from the content-addressed store, hash-verified

844
845
846def get_codex2api_services(
847 db: Session,
848 enabled: Optional[bool] = None,
849) -> List[Codex2ApiService]:
850 """获取 Codex2API 服务列表"""
851 query = db.query(Codex2ApiService)
852 if enabled is not None:
853 query = query.filter(Codex2ApiService.enabled == enabled)
854 return query.order_by(asc(Codex2ApiService.priority), asc(Codex2ApiService.id)).all()
855
856
857def update_codex2api_service(

Callers

nothing calls this directly

Calls 3

allMethod · 0.80
queryMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected