You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update SKILL.md with authentication details and OpenAI model usage instructions (#3554)
* Update SKILL.md with authentication details and OpenAI model usage instructions
* Update SKILL.md to use placeholder values for dstack token and model name in API example
Copy file name to clipboardExpand all lines: skills/dstack/SKILL.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,14 @@ resources:
219
219
**Service endpoints:**
220
220
- Without gateway: `<dstack server URL>/proxy/services/<project name>/<run name>/`
221
221
- With gateway: `https://<run name>.<gateway domain>/`
222
-
- For OpenAI-compatible models, use the `/v1/...` paths under the service URL and pass the dstack token in the `Authorization` header.
222
+
- Authentication: Unless `auth` is `false`, include `Authorization: Bearer <DSTACK_TOKEN>` on all service requests.
223
+
- OpenAI-compatible models: Use `service.url` from `dstack run get <run-name> --json` and append `/v1` as the base URL; do **not** use deprecated `service.model.base_url` for requests.
224
+
- Example (with gateway):
225
+
```bash
226
+
curl -sS -X POST "https://<run name>.<gateway domain>/v1/chat/completions" \
0 commit comments