Skip to content

Commit 63ee54c

Browse files
committed
feat: launch command fix docs and tests
1 parent 38d5aca commit 63ee54c

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

cmd/cli/commands/launch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
const openaiPathSuffix = "/engines/v1"
1818

1919
// dummyAPIKey is a placeholder API key for Docker Model Runner (which doesn't require auth).
20-
const dummyAPIKey = "sk-docker-model-runner"
20+
const dummyAPIKey = "sk-docker-model-runner" //nolint:gosec // not a real credential
2121

2222
// engineEndpoints holds the resolved base URLs (without path) for both
2323
// client locations.
@@ -127,8 +127,8 @@ Supported apps: %s`, strings.Join(supportedApps, ", ")),
127127
// container and host client locations.
128128
func resolveBaseEndpoints(runner *standaloneRunner) (engineEndpoints, error) {
129129
const (
130-
localhost = "127.0.0.1"
131-
hostDockerInternal = "host.docker.internal"
130+
localhost = "127.0.0.1"
131+
hostDockerInternal = "host.docker.internal"
132132
)
133133

134134
kind := modelRunner.EngineKind()

cmd/cli/docs/reference/docker_model_launch.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
command: docker model launch
22
short: Launch an app configured to use Docker Model Runner
3-
long: Launch an app configured to use Docker Model Runner
4-
usage: docker model launch APP
3+
long: |-
4+
Launch an app configured to use Docker Model Runner.
5+
6+
Supported apps: anythingllm, claude, codex, openclaw, opencode, openwebui
7+
usage: docker model launch APP [-- APP_ARGS...]
58
pname: docker model
69
plink: docker_model.yaml
710
options:

cmd/cli/docs/reference/model_launch.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# docker model launch
22

33
<!---MARKER_GEN_START-->
4-
Launch an app configured to use Docker Model Runner
4+
Launch an app configured to use Docker Model Runner.
5+
6+
Supported apps: anythingllm, claude, codex, openclaw, opencode, openwebui
57

68
### Options
79

0 commit comments

Comments
 (0)