hadadrjt commited on
Commit
a3dd297
·
1 Parent(s): 93ce464

J.A.R.V.I.S.: Release OpenAI-Compatible API for Next-Gen. [API 2/2]

Browse files
Files changed (1) hide show
  1. README.md +15 -5
README.md CHANGED
@@ -150,22 +150,32 @@ For **developers**, an OpenAI-compatible API is available, facilitating seamless
150
  </video>
151
 
152
  ```bash
153
- # OpenAI Style (developers only)
154
- curl https://hadadrjt-api.hf.space/v1/responses \
155
  -H "Content-Type: application/json" \
156
  -d '{
157
- "model": "JARVIS: 2.1.3",
158
- "input": "Write a one-sentence bedtime story about a unicorn.",
 
 
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: OpenAI-compatible API feature is deprecated for the Next-Gen version. The previous screen recording was made using the old version of Spaces, not the Next-Gen version. A new release will be available soon.</div>
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