diff --git a/skills/dstack/SKILL.md b/skills/dstack/SKILL.md index 1f32c089d..97747849f 100644 --- a/skills/dstack/SKILL.md +++ b/skills/dstack/SKILL.md @@ -219,7 +219,14 @@ resources: **Service endpoints:** - Without gateway: `/proxy/services///` - With gateway: `https://./` -- For OpenAI-compatible models, use the `/v1/...` paths under the service URL and pass the dstack token in the `Authorization` header. +- Authentication: Unless `auth` is `false`, include `Authorization: Bearer ` on all service requests. +- OpenAI-compatible models: Use `service.url` from `dstack run get --json` and append `/v1` as the base URL; do **not** use deprecated `service.model.base_url` for requests. +- Example (with gateway): + ```bash + curl -sS -X POST "https://./v1/chat/completions" \ + -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ + -d '{"model":"","messages":[{"role":"user","content":"Hello"}],"max_tokens":64}' [Concept documentation](https://dstack.ai/docs/concepts/services.md) | [Configuration reference](https://dstack.ai/docs/reference/dstack.yml/service.md) @@ -235,7 +242,7 @@ resources: gpu: 24GB.. disk: 200GB -spot_policy: auto +spot_policy: auto # other values: spot, on-demand idle_duration: 5m ```