[GH-ISSUE #179] Installed-model startup ignores --host and --api-key #94

Closed
opened 2026-11-04 01:39:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @nszceta on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/179

Related to #26. On an already installed model:

./setup.sh --host 0.0.0.0 --api-key test-key

Expected: listen on 0.0.0.0:8080 and require the API key.

Actual: listens on 127.0.0.1:8080; /v1/models returns 200 without a key when none is saved.

The installed-model shortcuts drop both options, and start() does not forward them.

Fix: forward both flags on installed-model startup, preserving saved defaults when omitted. A local patch verified wildcard binding, remote authentication (401 without/wrong key, 200 with it), and a successful chat completion.

Originally created by @nszceta on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/179 Related to [#26](https://github.com/Niko1221/Strata/issues/26). On an already installed model: ```sh ./setup.sh --host 0.0.0.0 --api-key test-key ``` **Expected:** listen on `0.0.0.0:8080` and require the API key. **Actual:** listens on `127.0.0.1:8080`; `/v1/models` returns `200` without a key when none is saved. The [installed-model shortcuts](https://github.com/Niko1221/Strata/blob/a79080535d1b2a71a3419a0d97d8e7dca194b0f1/setup.py#L1630-L1652) drop both options, and [start()](https://github.com/Niko1221/Strata/blob/a79080535d1b2a71a3419a0d97d8e7dca194b0f1/setup.py#L1418-L1428) does not forward them. **Fix:** forward both flags on installed-model startup, preserving saved defaults when omitted. A local patch verified wildcard binding, remote authentication (`401` without/wrong key, `200` with it), and a successful chat completion.
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

Confirmed. In 0.1.28 (in testing) --host, --api-key (and the new --draft-vocab) given on a start are saved into that model's config, so they apply now and on later starts.

<!-- gh-comment-id:5908107931 --> @Niko1221 commented on GitHub (Sep 30, 2026): Confirmed. In 0.1.28 (in testing) `--host`, `--api-key` (and the new `--draft-vocab`) given on a start are saved into that model's config, so they apply now and on later starts.
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

Fixed in 0.1.28: --host, --api-key and --draft-vocab given when starting an installed model are saved into its config and used right away.

<!-- gh-comment-id:5908632542 --> @Niko1221 commented on GitHub (Sep 30, 2026): Fixed in [0.1.28](https://github.com/Niko1221/Strata/releases/tag/v0.1.28): `--host`, `--api-key` and `--draft-vocab` given when starting an installed model are saved into its config and used right away.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#94
No description provided.