Spaces:
Running
Running
Commit ·
42b2102
1
Parent(s): aad860c
Convert to static HTML
Browse files- README.md +1 -3
- index.html +90 -0
- static/style.css +172 -0
README.md
CHANGED
|
@@ -3,9 +3,7 @@ title: Cache AI
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version: 6.2.0
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: "Semantic caching for LLMs: 90% cheaper, 10× faster"
|
| 11 |
---
|
|
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
+
sdk: static
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
short_description: "Semantic caching for LLMs: 90% cheaper, 10× faster"
|
| 9 |
---
|
index.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Cache AI - Semantic Caching for LLMs</title>
|
| 7 |
+
<link rel="stylesheet" href="static/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<header>
|
| 12 |
+
<h1>Cache AI</h1>
|
| 13 |
+
<p class="tagline">Semantic caching for LLMs: 90% cheaper, 10× faster</p>
|
| 14 |
+
</header>
|
| 15 |
+
|
| 16 |
+
<div class="notice">
|
| 17 |
+
<p><strong>Cache AI provides:</strong></p>
|
| 18 |
+
<ul>
|
| 19 |
+
<li>A Python API (available on PyPI)</li>
|
| 20 |
+
<li>A Web API (OpenAI-compatible)</li>
|
| 21 |
+
</ul>
|
| 22 |
+
<p style="margin-top: 10px;">
|
| 23 |
+
<strong>Note:</strong> Due to per-user API key issuance, this Space focuses on explaining behavior and usage, not full production execution.
|
| 24 |
+
</p>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<div class="stats">
|
| 28 |
+
<div class="stat">
|
| 29 |
+
<div class="stat-number">~90%</div>
|
| 30 |
+
<div class="stat-label">Cost Reduction</div>
|
| 31 |
+
</div>
|
| 32 |
+
<div class="stat">
|
| 33 |
+
<div class="stat-number">10×</div>
|
| 34 |
+
<div class="stat-label">Faster Response</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<section>
|
| 39 |
+
<h2>Quickstart: Python API</h2>
|
| 40 |
+
<pre><code>pip install cacheai</code></pre>
|
| 41 |
+
<pre><code>from cacheai import Client
|
| 42 |
+
|
| 43 |
+
client = Client(api_key="YOUR_API_KEY")
|
| 44 |
+
|
| 45 |
+
resp = client.chat.completions.create(
|
| 46 |
+
model="openai/gpt-oss-120b",
|
| 47 |
+
messages=[{"role": "user", "content": "Hello"}]
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
print(resp.choices[0].message.content)</code></pre>
|
| 51 |
+
</section>
|
| 52 |
+
|
| 53 |
+
<section>
|
| 54 |
+
<h2>Quickstart: Web API (OpenAI-compatible)</h2>
|
| 55 |
+
<pre><code>curl https://api.cacheai.tech/v1/chat/completions \
|
| 56 |
+
-H "Authorization: Bearer YOUR_API_KEY" \
|
| 57 |
+
-H "Content-Type: application/json" \
|
| 58 |
+
-d '{
|
| 59 |
+
"model": "openai/gpt-oss-120b",
|
| 60 |
+
"messages": [{"role":"user","content":"Hello"}]
|
| 61 |
+
}'</code></pre>
|
| 62 |
+
</section>
|
| 63 |
+
|
| 64 |
+
<section>
|
| 65 |
+
<h2>Key Features</h2>
|
| 66 |
+
<ul style="padding-left: 20px;">
|
| 67 |
+
<li>OpenAI-compatible API</li>
|
| 68 |
+
<li>Semantic similarity matching</li>
|
| 69 |
+
<li>Per-user API key management</li>
|
| 70 |
+
<li>Easy integration with existing workflows</li>
|
| 71 |
+
</ul>
|
| 72 |
+
</section>
|
| 73 |
+
|
| 74 |
+
<section>
|
| 75 |
+
<h2>Get Started</h2>
|
| 76 |
+
<div class="link-grid">
|
| 77 |
+
<a href="https://pypi.org/project/cacheai/" class="link-button" target="_blank">
|
| 78 |
+
📦 PyPI
|
| 79 |
+
</a>
|
| 80 |
+
<a href="https://github.com/cacheaitechnologies/cacheai" class="link-button" target="_blank">
|
| 81 |
+
🐙 GitHub
|
| 82 |
+
</a>
|
| 83 |
+
<a href="https://www.cacheaitechnologies.com/" class="link-button" target="_blank">
|
| 84 |
+
🌐 Website
|
| 85 |
+
</a>
|
| 86 |
+
</div>
|
| 87 |
+
</section>
|
| 88 |
+
</div>
|
| 89 |
+
</body>
|
| 90 |
+
</html>
|
static/style.css
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
--cacheai-blue: #1F3E97;
|
| 5 |
+
--cacheai-blue-light: #3A5FFF;
|
| 6 |
+
--cacheai-yellow: #FFF100;
|
| 7 |
+
--bg-gradient-start: #f0f2f5;
|
| 8 |
+
--bg-gradient-end: #ffffff;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
* {
|
| 12 |
+
margin: 0;
|
| 13 |
+
padding: 0;
|
| 14 |
+
box-sizing: border-box;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
body {
|
| 18 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
| 19 |
+
"Helvetica Neue", Arial, "Noto Sans", sans-serif;
|
| 20 |
+
line-height: 1.6;
|
| 21 |
+
color: #333;
|
| 22 |
+
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
|
| 23 |
+
min-height: 100vh;
|
| 24 |
+
padding: 20px;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.container {
|
| 28 |
+
max-width: 1000px;
|
| 29 |
+
margin: 0 auto;
|
| 30 |
+
background: white;
|
| 31 |
+
border-radius: 12px;
|
| 32 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
| 33 |
+
padding: 40px;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* Header */
|
| 37 |
+
header {
|
| 38 |
+
text-align: center;
|
| 39 |
+
margin-bottom: 40px;
|
| 40 |
+
padding-bottom: 30px;
|
| 41 |
+
border-bottom: 2px solid #f0f0f0;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
h1 {
|
| 45 |
+
color: var(--cacheai-blue);
|
| 46 |
+
font-size: 2.5em;
|
| 47 |
+
margin-bottom: 15px;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.tagline {
|
| 51 |
+
font-size: 1.2em;
|
| 52 |
+
color: #666;
|
| 53 |
+
font-weight: 500;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* Notice */
|
| 57 |
+
.notice {
|
| 58 |
+
background: #f8f9ff;
|
| 59 |
+
border-left: 4px solid var(--cacheai-blue);
|
| 60 |
+
padding: 20px;
|
| 61 |
+
margin: 30px 0;
|
| 62 |
+
border-radius: 4px;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.notice ul {
|
| 66 |
+
margin: 10px 0;
|
| 67 |
+
padding-left: 20px;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
/* Stats */
|
| 71 |
+
.stats {
|
| 72 |
+
display: grid;
|
| 73 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 74 |
+
gap: 20px;
|
| 75 |
+
margin: 30px 0;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.stat {
|
| 79 |
+
text-align: center;
|
| 80 |
+
padding: 25px;
|
| 81 |
+
background: linear-gradient(135deg, var(--cacheai-blue) 0%, var(--cacheai-blue-light) 100%);
|
| 82 |
+
border-radius: 10px;
|
| 83 |
+
color: white;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.stat-number {
|
| 87 |
+
font-size: 2.5em;
|
| 88 |
+
font-weight: bold;
|
| 89 |
+
margin-bottom: 5px;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.stat-label {
|
| 93 |
+
font-size: 1em;
|
| 94 |
+
opacity: 0.9;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
/* Section */
|
| 98 |
+
section {
|
| 99 |
+
margin: 40px 0;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
h2 {
|
| 103 |
+
color: var(--cacheai-blue);
|
| 104 |
+
font-size: 1.8em;
|
| 105 |
+
margin-bottom: 20px;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/* Code blocks */
|
| 109 |
+
pre {
|
| 110 |
+
background: #f5f5f5;
|
| 111 |
+
border: 1px solid #ddd;
|
| 112 |
+
border-radius: 6px;
|
| 113 |
+
padding: 20px;
|
| 114 |
+
overflow-x: auto;
|
| 115 |
+
margin: 15px 0;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
code {
|
| 119 |
+
font-family: Monaco, 'Courier New', Courier, monospace;
|
| 120 |
+
font-size: 0.9em;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
pre code {
|
| 124 |
+
background: none;
|
| 125 |
+
border: none;
|
| 126 |
+
padding: 0;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
/* Links */
|
| 130 |
+
.link-grid {
|
| 131 |
+
display: grid;
|
| 132 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 133 |
+
gap: 15px;
|
| 134 |
+
margin-top: 20px;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.link-button {
|
| 138 |
+
display: block;
|
| 139 |
+
padding: 15px 25px;
|
| 140 |
+
background: var(--cacheai-blue);
|
| 141 |
+
color: white;
|
| 142 |
+
text-decoration: none;
|
| 143 |
+
border-radius: 8px;
|
| 144 |
+
text-align: center;
|
| 145 |
+
font-weight: 600;
|
| 146 |
+
transition: all 0.3s ease;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
.link-button:hover {
|
| 150 |
+
background: var(--cacheai-blue-light);
|
| 151 |
+
transform: translateY(-2px);
|
| 152 |
+
box-shadow: 0 4px 12px rgba(31, 62, 151, 0.3);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
/* Responsive */
|
| 156 |
+
@media (max-width: 768px) {
|
| 157 |
+
.container {
|
| 158 |
+
padding: 25px;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
h1 {
|
| 162 |
+
font-size: 2em;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.tagline {
|
| 166 |
+
font-size: 1.1em;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.stat-number {
|
| 170 |
+
font-size: 2em;
|
| 171 |
+
}
|
| 172 |
+
}
|