Spaces:
Running
Running
Update index.html
Browse files- index.html +16 -8
index.html
CHANGED
@@ -324,8 +324,9 @@ header:hover .scroll-indicator .arrow {
|
|
324 |
<h2>Quick Start Guide</h2>
|
325 |
|
326 |
<h3>Base URL</h3>
|
|
|
|
|
327 |
<div class="endpoint">https://parthsadaria-lokiai.hf.space/chat/completions</div>
|
328 |
-
|
329 |
<h3>Models Endpoint</h3>
|
330 |
<div class="endpoint">https://parthsadaria-lokiai.hf.space/models</div>
|
331 |
|
@@ -335,19 +336,26 @@ header:hover .scroll-indicator .arrow {
|
|
335 |
</a>
|
336 |
</section>
|
337 |
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
"model": "llama-3.1-405b",
|
342 |
"messages": [
|
343 |
{
|
344 |
"role": "user",
|
345 |
"content": "Hello, AI!"
|
346 |
-
}
|
347 |
-
|
348 |
-
|
349 |
}</code></pre>
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
|
352 |
<section class="section">
|
353 |
<h2>Available Models</h2>
|
|
|
324 |
<h2>Quick Start Guide</h2>
|
325 |
|
326 |
<h3>Base URL</h3>
|
327 |
+
<div class="endpoint">https://parthsadaria-lokiai.hf.space</div>
|
328 |
+
<h3>Chat Completion URL</h3>
|
329 |
<div class="endpoint">https://parthsadaria-lokiai.hf.space/chat/completions</div>
|
|
|
330 |
<h3>Models Endpoint</h3>
|
331 |
<div class="endpoint">https://parthsadaria-lokiai.hf.space/models</div>
|
332 |
|
|
|
336 |
</a>
|
337 |
</section>
|
338 |
|
339 |
+
<section class="section">
|
340 |
+
<h2>Request Format</h2>
|
341 |
+
<pre><code class="language-json">{
|
342 |
"model": "llama-3.1-405b",
|
343 |
"messages": [
|
344 |
{
|
345 |
"role": "user",
|
346 |
"content": "Hello, AI!"
|
347 |
+
}
|
348 |
+
],
|
349 |
+
"stream": true
|
350 |
}</code></pre>
|
351 |
+
|
352 |
+
<h3>Headers</h3>
|
353 |
+
<pre><code class="language-json">{
|
354 |
+
"Authorization": "your_api_key_here",
|
355 |
+
"Content-Type": "application/json"
|
356 |
+
}</code></pre>
|
357 |
+
</section>
|
358 |
+
|
359 |
|
360 |
<section class="section">
|
361 |
<h2>Available Models</h2>
|