llama.cpp/examples/server/public_simplechat/simplechat.html

36 lines
1.0 KiB
HTML

<html>
<head>
<title>Simple LlamaCPP Chat</title>
<meta name="message" content="Save Nature Save Earth" />
<meta name="description" content="Simple chat / test LLM web service endpoints /completions and /chat/completions" />
<meta name="author" content="by Humans for All" />
<script src="simplechat.js"></script>
<style>
.role-user {
background-color: lightgray;
}
#user {
width: 90vh;
}
</style>
</head>
<body>
<p> SimpleChat </p>
<label for="api-ep">Mode:</label>
<select name="api-ep" id="api-ep">
<option value="chat">Chat</option>
<option value="completion">Completion</option>
</select>
<hr>
<div id="chat">
<p> Enter your text to the ai assistant below</p>
</div>
<hr>
<input type="text" id="user"/>
<button id="submit">submit</button>
</body>
</html>