J.A.R.V.I.S.: Release OpenAI-Compatible API for Next-Gen. [API 2/2]
Browse files
README.md
CHANGED
@@ -150,22 +150,32 @@ For **developers**, an OpenAI-compatible API is available, facilitating seamless
|
|
150 |
</video>
|
151 |
|
152 |
```bash
|
153 |
-
# OpenAI
|
154 |
-
curl https://hadadrjt-api.hf.space/v1/
|
155 |
-H "Content-Type: application/json" \
|
156 |
-d '{
|
157 |
-
"model": "
|
158 |
-
"
|
|
|
|
|
159 |
"stream": true
|
160 |
}'
|
161 |
```
|
162 |
|
|
|
|
|
|
|
|
|
163 |
```
|
164 |
# Endpoint
|
165 |
https://hadadrjt-api.hf.space/v1
|
|
|
|
|
|
|
|
|
166 |
```
|
167 |
|
168 |
-
<div style="font-size: x-small; font-weight: bold;">Please note:
|
169 |
|
170 |
## Responsible Use
|
171 |
|
|
|
150 |
</video>
|
151 |
|
152 |
```bash
|
153 |
+
# OpenAI-Compatible API (developers only)
|
154 |
+
curl -X POST https://hadadrjt-api.hf.space/v1/chat/completions \
|
155 |
-H "Content-Type: application/json" \
|
156 |
-d '{
|
157 |
+
"model": "Q8_K_XL",
|
158 |
+
"messages": [
|
159 |
+
{"role": "user", "content": "Hello, who are you?"}
|
160 |
+
],
|
161 |
"stream": true
|
162 |
}'
|
163 |
```
|
164 |
|
165 |
+
<video src="https://gitlab.com/hdrjt/assets/-/raw/master/videos/JARVIS_next.mp4" controls>
|
166 |
+
Your browser does not support the video tag.
|
167 |
+
</video>
|
168 |
+
|
169 |
```
|
170 |
# Endpoint
|
171 |
https://hadadrjt-api.hf.space/v1
|
172 |
+
|
173 |
+
# Next-Gen provides support for tools and function calling.
|
174 |
+
# Because this is free, without any cost, rate limits for access,
|
175 |
+
# or a queue system and temporary sessions will apply
|
176 |
```
|
177 |
|
178 |
+
<div style="font-size: x-small; font-weight: bold;">Please note: Audio and Image generation as well as Deep Search are not available for the OpenAI-Compatible API.</div>
|
179 |
|
180 |
## Responsible Use
|
181 |
|