()
| 193 | } |
| 194 | |
| 195 | function updateModelIdVisibility() { |
| 196 | if (!modelIdGroup) return; |
| 197 | const hasCustomUrl = baseUrlInput && baseUrlInput.value.trim().length > 0; |
| 198 | modelIdGroup.style.display = hasCustomUrl ? "" : "none"; |
| 199 | if (protocolGroup) { |
| 200 | protocolGroup.style.display = hasCustomUrl ? "" : "none"; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | async function handleSave() { |
| 205 | const key = apiKeyInput.value.trim(); |