remove labels from API configuration inputs and update placeholders
This commit is contained in:
parent
ebc574db25
commit
d557ffcfbe
1 changed files with 2 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue