133 lines
4.2 KiB
HTML
133 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>{{ llm_middleware_name }}</title>
|
|
<meta content="width=device-width, initial-scale=1" name="viewport"/>
|
|
{{ analytics_tracking_code|safe }}
|
|
<!-- https://highlightjs.org/demo#lang=json -->
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" rel="stylesheet">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
|
<style>
|
|
.container {
|
|
padding: 1em 3em;
|
|
}
|
|
|
|
#json {
|
|
background-color: rgb(229 231 235);
|
|
padding: 1em;
|
|
display: inline-block;
|
|
margin: auto;
|
|
max-width: 95%;
|
|
}
|
|
|
|
body {
|
|
background-color: #f3f4f6;
|
|
}
|
|
|
|
.info-box {
|
|
background-color: white;
|
|
padding: 1em;
|
|
margin: auto;
|
|
border-radius: 10px;
|
|
max-width: 95%;
|
|
}
|
|
|
|
pre code.hljs {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
a, a:visited {
|
|
color: blue;
|
|
}
|
|
|
|
.footer {
|
|
font-size: 7pt;
|
|
text-align: center;
|
|
}
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
text-align: justify;
|
|
}
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
.container {
|
|
padding: 1em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
const backend_online = {% if current_model != 'offline' %}true{% else %}false{% endif %};
|
|
</script>
|
|
<div class="container">
|
|
<h1 style="text-align: center;margin-top: 0;">{{ llm_middleware_name }}</h1>
|
|
|
|
<div class="info-box">
|
|
<p><strong>Current Model:</strong> <span id="model">{{ current_model }}</span></p>
|
|
<p><strong>Estimated Wait Time:</strong> <span id="estimatedWait">{{ estimated_wait }}</span></p>
|
|
<br>
|
|
<p><strong>Client API URL:</strong> {{ client_api }}</p>
|
|
<p><strong>Streaming API URL:</strong> {{ ws_client_api if enable_streaming else 'Disabled' }}</p>
|
|
<p><strong>OpenAI-Compatible API URL:</strong> {{ openai_client_api }}</p>
|
|
{% if info_html|length > 1 %}
|
|
<br>
|
|
{{ info_html|safe }}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="info-box">
|
|
<div id="oobabooga">
|
|
<strong>Instructions:</strong>
|
|
<ol>
|
|
<li>Set your API type to <kbd>{{ mode_name }}</kbd></li>
|
|
<li>Enter <kbd>{{ client_api }}</kbd> in the <kbd>{{ api_input_textbox }}</kbd> textbox.</li>
|
|
{% if enable_streaming %}<li>Enter <kbd>{{ ws_client_api }}</kbd> in the <kbd>{{ streaming_input_textbox }}</kbd> textbox.</li>{% endif %}
|
|
<li>If you have a token, check the <kbd>Mancer AI</kbd> checkbox and enter your token in the <kbd>Mancer
|
|
API key</kbd> textbox.
|
|
</li>
|
|
<li>Click <kbd>Connect</kbd> to test the connection.</li>
|
|
<li>Open your preset config and set <kbd>Context Size</kbd> to {{ context_size }}.</li>
|
|
<li>Follow this guide to get set up: <a href="https://rentry.org/freellamas" target="_blank">rentry.org/freellamas</a>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
{% if openai_client_api != 'disabled' and expose_openai_system_prompt %}
|
|
<br>
|
|
<div id="openai">
|
|
<strong>OpenAI-Compatible API</strong>
|
|
<p>The OpenAI-compatible API adds a system prompt to set the AI's behavior to a "helpful assistant". You can view this prompt <a href="/api/openai/v1/prompt">here</a>.</p>
|
|
</div>
|
|
{% endif %}
|
|
<br>
|
|
<div id="extra-info">{{ extra_info|safe }}</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="info-box">
|
|
<pre><code class="language-json" style="background-color: white">{{ stats_json|safe }}</code></pre>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<a href="https://git.evulid.cc/cyberes/local-llm-server" target="_blank">git.evulid.cc/cyberes/local-llm-server</a>
|
|
</div>
|
|
<script>hljs.highlightAll();</script>
|
|
</body>
|
|
|
|
</html>
|