gpt_chrome_autodrafter_v3/options.html
2025-07-01 15:46:34 -07:00

81 lines
No EOL
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gmail Auto-Draft Options</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
background: #ffffff;
color: #1a4d2e;
font-family: Arial, sans-serif;
margin: 0;
padding: 24px;
}
h1 {
color: #1a4d2e;
}
label {
color: #1a4d2e;
font-weight: bold;
}
input[type="text"], textarea {
width: 100%;
padding: 8px;
margin: 4px 0 12px 0;
border: 1px solid #e6b800;
border-radius: 4px;
}
button {
background: #1a4d2e;
color: #ffffff;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
margin-right: 8px;
}
button.gold {
background: #e6b800;
color: #1a4d2e;
}
</style>
</head>
<body>
<h1>Gmail Auto-Draft Settings</h1>
<form id="settings-form">
<label for="api-key">OpenAI API Key:</label>
<input type="text" id="api-key" name="api-key" placeholder="sk-..." required><br><br>
<label for="custom-gpt-endpoint">Custom GPT Assistant ID (optional):</label>
<input type="text" id="custom-gpt-endpoint" name="custom-gpt-endpoint" placeholder="asst_..."><br><br>
<label for="custom-prompt">Custom Prompt:</label>
<textarea id="custom-prompt" name="custom-prompt" rows="3" placeholder="Enter your custom prompt here..."></textarea><br><br>
<label for="auto-draft">
<input type="checkbox" id="auto-draft" name="auto-draft"> Enable Auto-Draft on open
</label><br><br>
<div class="info">
<p>Context-specific prompts can be added for individual drafts directly in the extension UI.</p>
</div>
<div class="section">
<h3>Plusvibe/Pipl.ai API Configuration (Optional)</h3>
<p class="info">If you have a Plusvibe API key, you can enter it here for enhanced thread extraction. If not provided, the extension will use DOM extraction.</p>
<label for="plusvibeApiKey">API Key:</label>
<input type="password" id="plusvibeApiKey" placeholder="Enter your Plusvibe API key">
<label for="plusvibeApiUrl">API Base URL (optional):</label>
<input type="url" id="plusvibeApiUrl" placeholder="https://app.pipl.ai/api/v2">
<div class="info">
<p><strong>Note:</strong> API key is optional. The extension will work without it using DOM extraction.</p>
</div>
</div>
<button type="submit">Save Settings</button>
</form>
<script src="options.js"></script>
</body>
</html>