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

Function deleteCodex2apiService

static/js/settings.js:1726–1736  ·  view source on GitHub ↗
(id, name)

Source from the content-addressed store, hash-verified

1724}
1725
1726async function deleteCodex2apiService(id, name) {
1727 const confirmed = await confirm(`确定要删除 Codex2API 服务「${name}」吗?`);
1728 if (!confirmed) return;
1729 try {
1730 await api.delete(`/codex2api-services/${id}`);
1731 toast.success('已删除');
1732 loadCodex2apiServices();
1733 } catch (e) {
1734 toast.error('删除失败: ' + e.message);
1735 }
1736}
1737
1738async function testCodex2apiServiceById(id) {
1739 try {

Callers

nothing calls this directly

Calls 5

confirmFunction · 0.85
loadCodex2apiServicesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected