-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (33 loc) · 1.19 KB
/
index.html
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
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OpenAI Assistant Prompt Injection Tester</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/json.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ajv/4.4.0/ajv.min.js"></script>
</head>
<body>
<h1>Step 1: OpenAI Key(required)</h1>
<label for="OPENAI_API_KEY">OPENAI_API_KEY create <a href="https://platform.openai.com/api-keys">here</a></label>
<br/>
<input id="OPENAI_API_KEY" type="text">
<br/>
<br/>
<label>When you input key once its saved to local storage, never leaves your computer</label>
<br/>
<button id="delete_key">delete saved key</button>
<h1>Step 2: Add JSON of a call to OpenAI</h1>
<label for="json">
JSON:
</label>
<br/>
<textarea cols="80" rows="10" id="json"></textarea>
<br/><br/>
<h1>Step 3: Run</h1>
<button id="run">Run</button>
<div id="output">...</div>
<script src="main.js" type="module"></script>
</body>
</html>