Skip to content

Commit 45ee399

Browse files
committed
Move provider pinning tip in Responses API guide
1 parent 630f15e commit 45ee399

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/inference-providers/guides/responses-api.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ The Responses API provides a unified interface built for agentic apps. With it,
1818
- A Hugging Face account with remaining Inference Providers credits (free tier available).
1919
- A fine-grained Hugging Face token with “Make calls to Inference Providers” permission stored in `HF_TOKEN`.
2020

21-
> [!TIP]
22-
> If you plan to pin a specific provider, append it to the model id as `<repo>:<provider>` (for example `moonshotai/Kimi-K2-Instruct-0905:groq`). Otherwise, omit the suffix and let routing fall back to the default provider.
23-
2421
## Configure your Responses client
2522

26-
The Hugging Face router lives at `https://router.huggingface.co/v1`. When you use the OpenAI SDK, set that URL as the client's `base_url` so the library can append resource paths (for example `/responses`).
27-
2823
Install the OpenAI SDK for your language of choice before running the snippets below (`pip install openai` for Python or `npm install openai` for Node.js). If you prefer issuing raw HTTP calls, any standard tool such as `curl` will work as well.
2924

3025
<hfoptions id="responses-first-call">
@@ -89,6 +84,10 @@ curl https://router.huggingface.co/v1/responses \
8984

9085
</hfoptions>
9186

87+
88+
> [!TIP]
89+
> If you plan to pin a specific provider, append it to the model id as `<repo>:<provider>` (for example `moonshotai/Kimi-K2-Instruct-0905:groq`). Otherwise, omit the suffix and let routing fall back to the default provider.
90+
9291
## Core Response patterns
9392

9493
### Plain text output

0 commit comments

Comments
 (0)