Skip to content

Commit 6a51205

Browse files
committed
get rid of nested hfoptions
1 parent d75436c commit 6a51205

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

docs/inference-providers/index.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,11 @@ For more details about user tokens, check out [this guide](https://huggingface.c
7272

7373
TODO : add blurb explaining what we're doing here (quick inference with LLM and chat completions)
7474

75-
<hfoptions id="inference-providers-examples">
76-
77-
<hfoption id="python">
78-
79-
**Python**
75+
#### Python
8076

8177
This section explains how to use the Inference Providers API to run inference requests with [deepseek-ai/DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324) in Python.
8278

83-
<hfoptions id="clients">
79+
<hfoptions id="python-clients">
8480

8581
<hfoption id="huggingface_hub">
8682

@@ -173,15 +169,11 @@ print(response.json()["choices"][0]["message"])
173169

174170
</hfoptions>
175171

176-
</hfoption>
177-
178-
<hfoption id="javascript">
179-
180-
**JavaScript**
172+
#### JavaScript
181173

182174
This section explains how to use the Inference Providers API to run inference requests with [deepseek-ai/DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324) in Javascript.
183175

184-
<hfoptions id="js-clients">
176+
<hfoptions id="javascript-clients">
185177

186178
<hfoption id="huggingface.js">
187179

@@ -275,11 +267,7 @@ console.log(await response.json());
275267

276268
</hfoptions>
277269

278-
</hfoption>
279-
280-
<hfoption id="curl">
281-
282-
**cURL / HTTP**
270+
#### HTTP / cURL
283271

284272
The following cURL command highlighting the raw HTTP request. You can adapt this request to be run with the tool of your choice.
285273

@@ -301,10 +289,6 @@ curl https://router.huggingface.co/v1/chat/completions \
301289
}'
302290
```
303291

304-
</hfoption>
305-
306-
</hfoptions>
307-
308292
### Quick Start - Image generation
309293

310294
TODO: explain how to use inference providers for text-to-image task

0 commit comments

Comments
 (0)