api4 / public /index.html
ngoctuanai's picture
Upload index.html
4e53ff3
raw
history blame
1.14 kB
<!-- public/index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OPENAI Reverse Proxy</title>
<!-- Link tới tệp CSS của Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<!-- Add the function getExternalUrl(spaceId) here -->
<script>
function getExternalUrl(spaceId) {
try {
const [username, spacename] = spaceId.split("/");
return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1`;
} catch (e) {
return "";
}
}
</script>
</head>
<body>
<div class="container">
<h1 class="text-center">Welcome to OPENAI Reverse Proxy</h1>
<p class="lead">This is your OpenAI Reverse Proxy URL:</p>
</div>
<!-- Link tới tệp JavaScript của Bootstrap -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<!-- Link to the JavaScript file that contains the Node.js code -->
<script src="server.js"></script>
</body>
</html>