File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
content/manuals/compose/how-tos Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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.
4646This 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
4848There 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
5757This information is then passed to services which declare a dependency on the model provider.
5858In 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
6262This lets the `chat` service to interact with the model and use it for its own purposes.
6363
You can’t perform that action at this time.
0 commit comments