Skip to content

Commit e4c53c5

Browse files
Update SKILL.md to reflect service.model.base_url changes
Now that service.model.base_url points to service.url + /v1 for openai-format models, it is no longer deprecated and can be recommended as the model endpoint. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3f1520e commit e4c53c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

skills/dstack/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ resources:
222222
- Without gateway: `<dstack server URL>/proxy/services/f/<run name>/`
223223
- With gateway: `https://<run name>.<gateway domain>/`
224224
- Authentication: Unless `auth` is `false`, include `Authorization: Bearer <DSTACK_TOKEN>` on all service requests.
225-
- 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.
225+
- Model endpoint: If `model` is set, `service.model.base_url` from `dstack run get <run name> --json` provides the model endpoint. For OpenAI-compatible models (default when `model` is a string), this will be `<dstack server URL>/proxy/services/<project>/<run name>/v1` (no gateway) or `https://<run name>.<gateway domain>/v1` (with gateway).
226226
- Example (with gateway):
227227
```bash
228228
curl -sS -X POST "https://<run name>.<gateway domain>/v1/chat/completions" \

0 commit comments

Comments
 (0)