From 9d59a6d2aa8541d2ab5eadbc39ba161ae969835c Mon Sep 17 00:00:00 2001 From: Dorin Geman Date: Fri, 10 Oct 2025 12:41:05 +0300 Subject: [PATCH] docs: models-and-compose: move deprecated provider service type section to end of page Signed-off-by: Dorin Geman --- .../manuals/ai/compose/models-and-compose.md | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/content/manuals/ai/compose/models-and-compose.md b/content/manuals/ai/compose/models-and-compose.md index c5c7567c8987..30cfc161a247 100644 --- a/content/manuals/ai/compose/models-and-compose.md +++ b/content/manuals/ai/compose/models-and-compose.md @@ -83,33 +83,6 @@ Common configuration options include: > [!TIP] > See more example in the [Common runtime configurations](#common-runtime-configurations) section. -### Alternative configuration with provider services - -> [!IMPORTANT] -> -> This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead. - -You can also use the `provider` service type, which allows you to declare platform capabilities required by your application. -For AI models, you can use the `model` type to declare model dependencies. - -To define a model provider: - -```yaml -services: - chat: - image: my-chat-app - depends_on: - - ai_runner - - ai_runner: - provider: - type: model - options: - model: ai/smollm2 - context-size: 1024 - runtime-flags: "--no-prefill-assistant" -``` - ## Service model binding Services can reference models in two ways: short syntax and long syntax. @@ -360,6 +333,33 @@ models: - "0.9" ``` +## Alternative configuration with provider services + +> [!IMPORTANT] +> +> This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead. + +You can also use the `provider` service type, which allows you to declare platform capabilities required by your application. +For AI models, you can use the `model` type to declare model dependencies. + +To define a model provider: + +```yaml +services: + chat: + image: my-chat-app + depends_on: + - ai_runner + + ai_runner: + provider: + type: model + options: + model: ai/smollm2 + context-size: 1024 + runtime-flags: "--no-prefill-assistant" +``` + ## Reference - [`models` top-level element](/reference/compose-file/models.md)