update
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
<div class="dropdown-content">
|
||||
<div class="dropdown-item">
|
||||
<div class="field">
|
||||
<form id="api-keys-form" method="post" action="/addKeys" hx-trigger="submit"
|
||||
hx-target="#chat-messages" hx-swap="beforeend">
|
||||
<form id="api-keys-form" hx-post="/addKeys" hx-trigger="submit" hx-swap="afterend">
|
||||
<div class="field has-addons">
|
||||
<p class="control has-icons-left is-expanded">
|
||||
<input class="input is-small" type="text" placeholder="OpenAI API key" name="openai_key"
|
||||
autocomplete="off" {% if not IsLogin %}disabled{% endif %}>
|
||||
<input class="input is-small {% if OpenaiExists %}is-success{% endif %}" type="text"
|
||||
{%if not IsLogin %}disabled{% endif %} placeholder="OpenAI API key"
|
||||
name="openai_key" autocomplete="off">
|
||||
<span class="icon is-small is-left">
|
||||
<i class="fas fa-lock"></i>
|
||||
</span>
|
||||
@@ -21,8 +21,9 @@
|
||||
</div>
|
||||
<div class="field has-addons">
|
||||
<p class="control has-icons-left is-expanded">
|
||||
<input class="input is-small" type="text" placeholder="Anthropic API key"
|
||||
name="anthropic_key" autocomplete="off" {% if not IsLogin %}disabled{% endif %}>
|
||||
<input class="input is-small {% if AnthropicExists %}is-success{% endif %}" type="text"
|
||||
{% if not IsLogin %}disabled{% endif %} placeholder="Anthropic API key"
|
||||
name="anthropic_key" autocomplete="off">
|
||||
<span class="icon is-small is-left">
|
||||
<i class="fas fa-lock"></i>
|
||||
</span>
|
||||
@@ -31,7 +32,7 @@
|
||||
<div class="field has-addons">
|
||||
<p class="control">
|
||||
<button {% if not IsLogin %}disabled{% endif %} type="submit"
|
||||
class="button is-small">Submit</button>
|
||||
class="button is-small">Save</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user