|
|
|
<!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 rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> |
|
|
|
<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> |
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> |
|
|
|
<script src="server.js"></script> |
|
</body> |
|
|
|
</html> |
|
|