(id, name)
| 1724 | } |
| 1725 | |
| 1726 | async 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 | |
| 1738 | async function testCodex2apiServiceById(id) { |
| 1739 | try { |
nothing calls this directly
no test coverage detected