Spaces:
Running
Running
Hide legacy endpoint badges; improve lane API key handling
Browse files- api-tester.html +3 -16
api-tester.html
CHANGED
|
@@ -461,18 +461,7 @@
|
|
| 461 |
}
|
| 462 |
|
| 463 |
.endpoint-preset {
|
| 464 |
-
|
| 465 |
-
padding: 0.125rem 0.375rem;
|
| 466 |
-
background: var(--surface-hover);
|
| 467 |
-
border: 1px solid var(--border);
|
| 468 |
-
border-radius: 4px;
|
| 469 |
-
color: var(--text-dim);
|
| 470 |
-
cursor: pointer;
|
| 471 |
-
}
|
| 472 |
-
|
| 473 |
-
.endpoint-preset:hover {
|
| 474 |
-
border-color: var(--accent);
|
| 475 |
-
color: var(--accent);
|
| 476 |
}
|
| 477 |
|
| 478 |
.notice {
|
|
@@ -1082,10 +1071,8 @@
|
|
| 1082 |
const model = document.getElementById(`${laneId}-model`).value;
|
| 1083 |
const chainCount = parseInt(document.getElementById(`${laneId}-chain`).value) || 1;
|
| 1084 |
const systemPrompt = document.getElementById(`${laneId}-system`).value;
|
| 1085 |
-
const
|
| 1086 |
-
const apiKey =
|
| 1087 |
-
? laneApiKeyEl.value
|
| 1088 |
-
: document.getElementById('globalApiKey').value;
|
| 1089 |
const isStream = document.querySelector('input[name="streamMode"]:checked').value === 'true';
|
| 1090 |
|
| 1091 |
const outputSection = document.getElementById(`${laneId}-outputs`);
|
|
|
|
| 461 |
}
|
| 462 |
|
| 463 |
.endpoint-preset {
|
| 464 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
}
|
| 466 |
|
| 467 |
.notice {
|
|
|
|
| 1071 |
const model = document.getElementById(`${laneId}-model`).value;
|
| 1072 |
const chainCount = parseInt(document.getElementById(`${laneId}-chain`).value) || 1;
|
| 1073 |
const systemPrompt = document.getElementById(`${laneId}-system`).value;
|
| 1074 |
+
const apiKeyInput = document.getElementById(`${laneId}-apiKey`);
|
| 1075 |
+
const apiKey = apiKeyInput?.value || document.getElementById('globalApiKey').value;
|
|
|
|
|
|
|
| 1076 |
const isStream = document.querySelector('input[name="streamMode"]:checked').value === 'true';
|
| 1077 |
|
| 1078 |
const outputSection = document.getElementById(`${laneId}-outputs`);
|