Skip to content

Commit 527ab89

Browse files
authored
Merge branch 'main' into dmontagu/fix-graphs-circular-import
2 parents 15d7dac + c9e9d93 commit 527ab89

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/models/outlines.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Install
44

5-
As Outlines is a library allowing you to run models from various different providers, it does not include the necessary dependencies for any provider by default. As a result, to use the [`OutlinesModel`][pydantic_ai.models.OutlinesModel], you must install `pydantic-ai-slim` with an optional group composed of outlines, a dash, and the name of the specific model provider you would use through Outlines. For instance:
5+
As Outlines is a library allowing you to run models from various different providers, it does not include the necessary dependencies for any provider by default. As a result, to use the [`OutlinesModel`][pydantic_ai.models.outlines.OutlinesModel], you must install `pydantic-ai-slim` with an optional group composed of outlines, a dash, and the name of the specific model provider you would use through Outlines. For instance:
66

77
```bash
88
pip/uv-add "pydantic-ai-slim[outlines-transformers]"
@@ -51,11 +51,11 @@ Alternatively, you can use some `OutlinesModel` class methods made to load a spe
5151

5252
There are methods for the 5 Outlines models that are officially supported in the integration into Pydantic AI:
5353

54-
- [`from_transformers`][pydantic_ai.models.OutlinesModel.from_transformers]
55-
- [`from_llamacpp`][pydantic_ai.models.OutlinesModel.from_llamacpp]
56-
- [`from_mlxlm`][pydantic_ai.models.OutlinesModel.from_mlxlm]
57-
- [`from_sglang`][pydantic_ai.models.OutlinesModel.from_sglang]
58-
- [`from_vllm_offline`][pydantic_ai.models.OutlinesModel.from_vllm_offline]
54+
- [`from_transformers`][pydantic_ai.models.outlines.OutlinesModel.from_transformers]
55+
- [`from_llamacpp`][pydantic_ai.models.outlines.OutlinesModel.from_llamacpp]
56+
- [`from_mlxlm`][pydantic_ai.models.outlines.OutlinesModel.from_mlxlm]
57+
- [`from_sglang`][pydantic_ai.models.outlines.OutlinesModel.from_sglang]
58+
- [`from_vllm_offline`][pydantic_ai.models.outlines.OutlinesModel.from_vllm_offline]
5959

6060
#### Transformers
6161

@@ -125,7 +125,7 @@ model = OutlinesModel.from_vllm_offline(
125125

126126
Once you have initialized an `OutlinesModel`, you can use it with an Agent as with all other Pydantic AI models.
127127

128-
As Outlines is focused on structured output, this provider supports the `output_type` component through the [`NativeOutput`][pydantic_ai.outputs.NativeOutput] format. There is not need to include information on the required output format in your prompt, instructions based on the `output_type` will be included automatically.
128+
As Outlines is focused on structured output, this provider supports the `output_type` component through the [`NativeOutput`][pydantic_ai.output.NativeOutput] format. There is not need to include information on the required output format in your prompt, instructions based on the `output_type` will be included automatically.
129129

130130
```python {test="skip"}
131131
from pydantic import BaseModel

0 commit comments

Comments
 (0)