-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ef8efd
commit 1b7fcbf
Showing
5 changed files
with
24 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ emsdk | |
/blob-report/ | ||
/playwright/.cache/ | ||
bin | ||
|
||
*.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,53 +4,29 @@ | |
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>OpenAI Proxy Streaming</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
max-width: 600px; | ||
margin: 2em auto; | ||
padding: 1em; | ||
border: 1px solid #ccc; | ||
border-radius: 8px; | ||
} | ||
#messages { | ||
border: 1px solid #ddd; | ||
padding: 1em; | ||
min-height: 200px; | ||
margin-bottom: 1em; | ||
white-space: pre-wrap; | ||
} | ||
#question-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5em; | ||
} | ||
textarea { | ||
width: 100%; | ||
} | ||
button { | ||
align-self: flex-end; | ||
} | ||
</style> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<h1>OpenAI Proxy Streaming UI</h1> | ||
<input id="conversation_id" readonly ="conversation id" /> | ||
<button id="startConversationButton">Start conversation</button>" | ||
<div class="container"> | ||
<div class="mb-3"> | ||
<label for="conversation_id" class="form-label">Conversation id ( generated )</label> | ||
<input id="conversation_id" class="form-control" readonly /> | ||
</div> | ||
<button id="startConversationButton" class="btn btn-primary">Start conversation</button> | ||
|
||
<div id="messages"></div> | ||
<div id="question-container"> | ||
|
||
<textarea id="question" disabled rows="4" placeholder="Type your question here..."></textarea> | ||
<button id="askAIButton" disabled>Ask AI</button> | ||
|
||
<div class="mb-3"> | ||
<label for="question" class="form-label">Question</label> | ||
<textarea id="question" class="form-control" disabled rows="4" placeholder="Type your question here..."></textarea> | ||
<button id="askAIButton" class="btn btn-primary" disabled>Ask AI</button> | ||
</div> | ||
<button id="refundButton">Stop conversation and refund tokens</button><br /> | ||
<div> | ||
<button id="refundButton" class="btn btn-primary">Stop conversation and refund tokens</button><br /> | ||
<div style="width: 100%"> | ||
<pre> | ||
<code id="refund_message"></code> | ||
<code id="refund_message" style="white-space: wrap;"></code> | ||
</pre> | ||
</div> | ||
</div> | ||
<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js" crossorigin="anonymous"></script> | ||
<script type="importmap"> | ||
{ | ||
|
@@ -133,5 +109,6 @@ <h1>OpenAI Proxy Streaming UI</h1> | |
</script> | ||
<script src="main.js" type="module"> | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters