82 lines
5.3 KiB
HTML
82 lines
5.3 KiB
HTML
<div class="inline-drawer">
|
|
<div class="inline-drawer-toggle inline-drawer-header">
|
|
<b data-i18n="Image Auto Generation">Image Auto Generation</b>
|
|
<div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
|
|
</div>
|
|
<div class="inline-drawer-content">
|
|
<div class="flex-container flexnowrap">
|
|
<label for="image_generation_insert_type" class="flex1" data-i18n="Image Insert Type">Image Insert Type</label>
|
|
<select id="image_generation_insert_type" class="text_pole widthNatural margin0">
|
|
<option data-i18n="Insert In Current Message" value="inline">Insert In Current Message</option>
|
|
<option data-i18n="Inline Replace Mode" value="replace">Inline Replace Mode</option>
|
|
<option data-i18n="Create New Message" value="new">Create New Message</option>
|
|
<option data-i18n="Disable" value="disabled">Disable</option>
|
|
</select>
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label class="checkbox_label" for="custom_image_api_enabled">
|
|
<span data-i18n="Enable Custom Image API">Enable Custom Image API</span>
|
|
<input type="checkbox" id="custom_image_api_enabled" class="checkbox">
|
|
</label>
|
|
</div>
|
|
<div id="custom_image_api_settings">
|
|
<div>
|
|
<label for="custom_image_api_base_url" class="flex1" data-i18n="Custom Image API Base URL">Custom Image API Base URL</label>
|
|
<input id="custom_image_api_base_url" class="text_pole" type="url" placeholder="https://example.com/v1">
|
|
</div>
|
|
<div>
|
|
<label for="custom_image_api_model" class="flex1" data-i18n="Custom Image Model ID">Custom Image Model ID</label>
|
|
<input id="custom_image_api_model" class="text_pole" type="text" placeholder="grok-imagine-image">
|
|
</div>
|
|
<div>
|
|
<label for="custom_image_api_key" class="flex1" data-i18n="Custom Image API Key">Custom Image API Key</label>
|
|
<div class="flex-container flexnowrap">
|
|
<input id="custom_image_api_key" class="text_pole flex1" type="password" autocomplete="off" placeholder="sk-...">
|
|
<button id="custom_image_api_key_clear" type="button" class="menu_button menu_button_icon" data-i18n="[title]Clear Custom Image API Key" title="Clear Custom Image API Key" aria-label="Clear Custom Image API Key">
|
|
<i class="fa-solid fa-eraser"></i>
|
|
</button>
|
|
</div>
|
|
<small data-i18n="Custom Image API Key Hint">留空时使用酒馆的通用 API Key。插件 Key 只保存在当前浏览器,不会打包进插件。</small>
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label for="custom_image_api_size" class="flex1" data-i18n="Image Size">Image Size</label>
|
|
<input id="custom_image_api_size" class="text_pole widthUnset" type="text" placeholder="1024x1024">
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label for="custom_image_api_response_format" class="flex1" data-i18n="Response Format">Response Format</label>
|
|
<select id="custom_image_api_response_format" class="text_pole widthNatural margin0">
|
|
<option value="auto" data-i18n="Auto">Auto</option>
|
|
<option value="url" data-i18n="URL">URL</option>
|
|
<option value="b64_json" data-i18n="Base64 JSON">Base64 JSON</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label class="checkbox_label" for="prompt_injection_enabled">
|
|
<span data-i18n="Enable Prompt Injection">Enable Prompt Injection</span>
|
|
<input type="checkbox" id="prompt_injection_enabled" class="checkbox">
|
|
</label>
|
|
</div>
|
|
<div class="">
|
|
<div><label for="prompt_injection_text" class="flex1" data-i18n="Prompt Template">Prompt Template</label></div>
|
|
<textarea id="prompt_injection_text" class="text_pole textarea_compact" rows="3" placeholder="Prompt that instruct AI to generate image tag"></textarea>
|
|
</div>
|
|
<div class="">
|
|
<div><label for="prompt_injection_regex" class="flex1" data-i18n="Regex">Regex</label></div>
|
|
<textarea id="prompt_injection_regex" class="text_pole textarea_compact" rows="2" placeholder="Your regex here"></textarea>
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label for="prompt_injection_position" class="flex1" data-i18n="Position">Position</label>
|
|
<select id="prompt_injection_position" class="text_pole widthNatural margin0">
|
|
<option value="deep_system" data-i18n="at Depth System">Deep System</option>
|
|
<option value="deep_user" data-i18n="at Depth User">Deep User</option>
|
|
<option value="deep_assistant" data-i18n="at Depth AI">Deep Assistant</option>
|
|
</select>
|
|
</div>
|
|
<div class="flex-container flexnowrap">
|
|
<label for="prompt_injection_depth" class="flex1" data-i18n="Depth">Depth</label>
|
|
<input id="prompt_injection_depth" class="text_pole widthUnset" type="number" min="0" max="100">
|
|
</div>
|
|
</div>
|
|
</div>
|