Skip to content

Commit 369f69b

Browse files
authored
Merge pull request #24422 from dvdksn/fix/issue-24256-trim-deprecated-provider-section
compose: trim deprecated provider services section
2 parents 8eb2755 + 776e774 commit 369f69b

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -349,33 +349,6 @@ models:
349349
- "--embeddings" # Required for embedding models
350350
```
351351

352-
## Alternative configuration with provider services
353-
354-
> [!IMPORTANT]
355-
>
356-
> This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead.
357-
358-
You can also use the `provider` service type, which allows you to declare platform capabilities required by your application.
359-
For AI models, you can use the `model` type to declare model dependencies.
360-
361-
To define a model provider:
362-
363-
```yaml
364-
services:
365-
chat:
366-
image: my-chat-app
367-
depends_on:
368-
- ai_runner
369-
370-
ai_runner:
371-
provider:
372-
type: model
373-
options:
374-
model: ai/smollm2
375-
context-size: 1024
376-
runtime-flags: "--no-prefill-assistant"
377-
```
378-
379352
## Reference
380353

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

0 commit comments

Comments
 (0)