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

Function testCodex2apiServiceById

static/js/settings.js:1738–1749  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1736}
1737
1738async function testCodex2apiServiceById(id) {
1739 try {
1740 const result = await api.post(`/codex2api-services/${id}/test`);
1741 if (result.success) {
1742 toast.success(result.message);
1743 } else {
1744 toast.error(result.message);
1745 }
1746 } catch (e) {
1747 toast.error('测试失败: ' + e.message);
1748 }
1749}
1750
1751async function handleTestCodex2apiService() {
1752 const apiUrl = document.getElementById('codex2api-service-url').value.trim();

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected