From 6baf688022d5555ab4f92501e9a35b10c5e35ade Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Fri, 6 Feb 2026 17:39:28 +0100 Subject: [PATCH 1/2] Update SKILL.md with authentication details and OpenAI model usage instructions --- skills/dstack/SKILL.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/skills/dstack/SKILL.md b/skills/dstack/SKILL.md index 1f32c089d..683474990 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 $DSTACK_TOKEN" \ + -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 ``` From 0bb071393f70bb2145773e1469403a1da5027e5f Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Fri, 6 Feb 2026 17:41:50 +0100 Subject: [PATCH 2/2] Update SKILL.md to use placeholder values for dstack token and model name in API example --- skills/dstack/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/dstack/SKILL.md b/skills/dstack/SKILL.md index 683474990..97747849f 100644 --- a/skills/dstack/SKILL.md +++ b/skills/dstack/SKILL.md @@ -224,9 +224,9 @@ resources: - Example (with gateway): ```bash curl -sS -X POST "https://./v1/chat/completions" \ - -H "Authorization: Bearer $DSTACK_TOKEN" \ + -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ - -d '{"model":"","messages":[{"role":"user","content":"Hello"}],"max_tokens":64}' + -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)