59 lines
2.1 KiB
HTML
59 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html lang="vi">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#f7f8fc" />
|
|
<title>OpenAI Chat Demo</title>
|
|
<link rel="stylesheet" href="/styles.css" />
|
|
<script src="/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<main class="page-shell">
|
|
<section class="chat-card" aria-label="Trò chuyện với model">
|
|
<header class="topbar">
|
|
<div class="brand-mark" aria-hidden="true">AI</div>
|
|
<div>
|
|
<p class="eyebrow">SERVICE DEMO</p>
|
|
<div class="title-row">
|
|
<h1>OpenAI Chat</h1>
|
|
<span class="version-badge" aria-label="Phiên bản 3">v3</span>
|
|
</div>
|
|
</div>
|
|
<span class="status"><span class="status-dot"></span> Sẵn sàng</span>
|
|
</header>
|
|
|
|
<div id="messages" class="messages" aria-live="polite" aria-relevant="additions text">
|
|
<article class="message assistant-message">
|
|
<div class="avatar" aria-hidden="true">AI</div>
|
|
<div class="bubble">
|
|
<p>Xin chào! Bạn muốn hỏi điều gì?</p>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
|
|
<form id="chat-form" class="composer">
|
|
<label class="visually-hidden" for="question">Câu hỏi</label>
|
|
<textarea
|
|
id="question"
|
|
name="question"
|
|
rows="1"
|
|
maxlength="8000"
|
|
placeholder="Nhập câu hỏi…"
|
|
autocomplete="off"
|
|
required
|
|
></textarea>
|
|
<button id="send-button" type="submit" aria-label="Gửi câu hỏi">
|
|
<span>Gửi</span>
|
|
<svg viewBox="0 0 20 20" aria-hidden="true">
|
|
<path d="M3.2 10h12.6M10.5 4.7l5.3 5.3-5.3 5.3" />
|
|
</svg>
|
|
</button>
|
|
<p class="composer-hint">Enter để gửi · Shift + Enter để xuống dòng</p>
|
|
</form>
|
|
</section>
|
|
<p class="page-note">Bản demo gọi model qua backend; API key không được gửi xuống trình duyệt.</p>
|
|
</main>
|
|
</body>
|
|
</html>
|