Skip to content

Commit 575b04e

Browse files
authored
docs: models-and-compose: move deprecated provider service type section to end of page (#23537)
<!--Delete sections as needed --> ## Description <!-- Tell us what you did and why --> Move deprecated `provider` service type section to end of page to not interrupt the reading flow of the preferred definition. ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review Signed-off-by: Dorin Geman <[email protected]>
1 parent cceb45f commit 575b04e

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

content/manuals/ai/compose/models-and-compose.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,33 +83,6 @@ Common configuration options include:
8383
> [!TIP]
8484
> See more example in the [Common runtime configurations](#common-runtime-configurations) section.
8585

86-
### Alternative configuration with provider services
87-
88-
> [!IMPORTANT]
89-
>
90-
> This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead.
91-
92-
You can also use the `provider` service type, which allows you to declare platform capabilities required by your application.
93-
For AI models, you can use the `model` type to declare model dependencies.
94-
95-
To define a model provider:
96-
97-
```yaml
98-
services:
99-
chat:
100-
image: my-chat-app
101-
depends_on:
102-
- ai_runner
103-
104-
ai_runner:
105-
provider:
106-
type: model
107-
options:
108-
model: ai/smollm2
109-
context-size: 1024
110-
runtime-flags: "--no-prefill-assistant"
111-
```
112-
11386
## Service model binding
11487

11588
Services can reference models in two ways: short syntax and long syntax.
@@ -360,6 +333,33 @@ models:
360333
- "0.9"
361334
```
362335

336+
## Alternative configuration with provider services
337+
338+
> [!IMPORTANT]
339+
>
340+
> This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead.
341+
342+
You can also use the `provider` service type, which allows you to declare platform capabilities required by your application.
343+
For AI models, you can use the `model` type to declare model dependencies.
344+
345+
To define a model provider:
346+
347+
```yaml
348+
services:
349+
chat:
350+
image: my-chat-app
351+
depends_on:
352+
- ai_runner
353+
354+
ai_runner:
355+
provider:
356+
type: model
357+
options:
358+
model: ai/smollm2
359+
context-size: 1024
360+
runtime-flags: "--no-prefill-assistant"
361+
```
362+
363363
## Reference
364364

365365
- [`models` top-level element](/reference/compose-file/models.md)

0 commit comments

Comments
 (0)