Skip to content

Commit 32c7860

Browse files
authored
Update model-runner.md: replace hyphens (#22603)
## Description This makes the resulting env vars `AI_RUNNER_URL` and `AI_RUNNER_MODEL` actually accessible in different languages. ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent a461224 commit 32c7860

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/manuals/compose/how-tos/model-runner.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ services:
3333
chat:
3434
image: my-chat-app
3535
depends_on:
36-
- ai-runner
36+
- ai_runner
3737

38-
ai-runner:
38+
ai_runner:
3939
provider:
4040
type: model
4141
options:
4242
model: ai/smollm2
4343
```
4444
45-
Notice the dedicated `provider` attribute in the `ai-runner` service.
45+
Notice the dedicated `provider` attribute in the `ai_runner` service.
4646
This attribute specifies that the service is a model provider and lets you define options such as the name of the model to be used.
4747

4848
There is also a `depends_on` attribute in the `chat` service.
49-
This attribute specifies that the `chat` service depends on the `ai-runner` service.
50-
This means that the `ai-runner` service will be started before the `chat` service to allow injection of model information to the `chat` service.
49+
This attribute specifies that the `chat` service depends on the `ai_runner` service.
50+
This means that the `ai_runner` service will be started before the `chat` service to allow injection of model information to the `chat` service.
5151

5252
## How it works
5353

@@ -56,8 +56,8 @@ It also sends Compose the model tag name and the URL to access the model runner.
5656

5757
This information is then passed to services which declare a dependency on the model provider.
5858
In the example above, the `chat` service receives 2 environment variables prefixed by the service name:
59-
- `AI-RUNNER_URL` with the URL to access the model runner
60-
- `AI-RUNNER_MODEL` with the model name which could be passed with the URL to request the model.
59+
- `AI_RUNNER_URL` with the URL to access the model runner
60+
- `AI_RUNNER_MODEL` with the model name which could be passed with the URL to request the model.
6161

6262
This lets the `chat` service to interact with the model and use it for its own purposes.
6363

0 commit comments

Comments
 (0)