File size: 1,566 Bytes
ef987bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Offline Model Request Audit</title>
  <style>
    body { font: 16px/1.5 system-ui, sans-serif; max-width: 900px; margin: 24px auto; padding: 0 16px; color: #202838; }
    label { display: block; margin: 12px 0; }
    input, textarea { display: block; width: min(100%, 660px); padding: 8px; box-sizing: border-box; font: inherit; }
    textarea { min-height: 80px; }
    button { padding: 8px 16px; margin-right: 8px; cursor: pointer; }
    output { display: block; min-height: 3em; padding: 12px; background: #f2f5fa; white-space: pre-wrap; }
    li { margin: 10px 0; padding: 8px; border: 1px solid #d2d9e3; white-space: pre-wrap; }
    .meta { color: #566274; }
  </style>
  <script src="./config.js"></script>
</head>
<body>
  <main>
    <h1>Offline Model Request Audit</h1>
    <label>Prompt<textarea data-testid="prompt-input"></textarea></label>
    <label>Key<input data-testid="config-key" type="password" autocomplete="off"></label>
    <label>Base URL<input data-testid="config-baseurl"></label>
    <label>Model<input data-testid="config-modelname"></label>
    <button data-testid="send-button">Send Request</button>
    <button data-testid="clear-button">Clear History</button>
    <p data-testid="request-status">idle</p>
    <output data-testid="active-content"></output>
    <h2>Request History</h2>
    <ol data-testid="request-history"></ol>
  </main>
  <script src="./app.js"></script>
</body>
</html>