remove labels from API configuration inputs and update placeholders

This commit is contained in:
Russell Ballestrini 2025-07-10 23:28:48 -04:00
parent ebc574db25
commit d557ffcfbe

View file

@ -445,51 +445,36 @@ async function openUncloseaiEmbeddedModalNew() {
const baseURLContainer = document.createElement("div");
baseURLContainer.className = "uncloseai-input-container";
const baseURLLabel = document.createElement("label");
baseURLLabel.textContent = getUIText("baseURLLabel");
baseURLLabel.className = "uncloseai-input-label";
const baseURLInput = document.createElement("input");
baseURLInput.type = "text";
baseURLInput.placeholder = "https://api.openai.com/v1";
baseURLInput.value = localStorage.getItem("customBaseURL") || "";
baseURLInput.className = "uncloseai-input";
baseURLContainer.appendChild(baseURLLabel);
baseURLContainer.appendChild(baseURLInput);
// API Key input
const apiKeyContainer = document.createElement("div");
apiKeyContainer.className = "uncloseai-input-container";
const apiKeyLabel = document.createElement("label");
apiKeyLabel.textContent = "API Key:";
apiKeyLabel.className = "uncloseai-input-label";
const apiKeyInput = document.createElement("input");
apiKeyInput.type = "password";
apiKeyInput.placeholder = "sk-...";
apiKeyInput.placeholder = "API Key";
apiKeyInput.value = localStorage.getItem("customAPIKey") || "";
apiKeyInput.className = "uncloseai-input";
apiKeyContainer.appendChild(apiKeyLabel);
apiKeyContainer.appendChild(apiKeyInput);
// Model Name input
const modelNameContainer = document.createElement("div");
modelNameContainer.className = "uncloseai-input-container";
const modelNameLabel = document.createElement("label");
modelNameLabel.textContent = "Model Name:";
modelNameLabel.className = "uncloseai-input-label";
const modelNameInput = document.createElement("input");
modelNameInput.type = "text";
modelNameInput.placeholder = "gpt-4";
modelNameInput.placeholder = "Model Name";
modelNameInput.value = localStorage.getItem("customModelName") || "";
modelNameInput.className = "uncloseai-input";
modelNameContainer.appendChild(modelNameLabel);
modelNameContainer.appendChild(modelNameInput);
// API Config container for inputs