Skip to content

Commit ffbcda8

Browse files
committed
fix typos
1 parent 986e8e3 commit ffbcda8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

articles/ai-foundry/model-inference/includes/use-structured-outputs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Free-form outputs of language models can be difficult to parse by software appli
1616

1717
The following list describes typical scenarios where structured outputs are useful:
1818

19-
* You need to extract specific information from a prompt and such information can be described as an schema with specific keys and types.
19+
* You need to extract specific information from a prompt and such information can be described as a schema with specific keys and types.
2020
* You need to parse information contained in the prompts.
2121
* You're using the model to control a workflow in your application where you can benefit from more rigid structures.
2222
* You're using the model as a zero-shot or few-shot learner.

articles/ai-foundry/model-inference/includes/use-structured-outputs/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class Issue(BaseModel, extra="forbid"):
198198
Some things to notice:
199199

200200
* We represent schemas using a class that inherits from `BaseModel`.
201-
* We set `extra="forbid"` to instruct Pyndantic to _not_ accept additional properties from what we've specified.
201+
* We set `extra="forbid"` to instruct Pydantic to _not_ accept additional properties from what we've specified.
202202
* We use type annotations to indicate the expected types.
203203
* `Literal` indicates we expect specific fixed values.
204204

@@ -330,7 +330,7 @@ Let's consider the following chart:
330330

331331
:::image type="content" source="../../media/use-structured-outputs/example-graph-treecover.png" alt-text="An example image showing a chart with the annual loss in thousand square kilometers of global tree cover across different climate zones." lightbox="../../media/use-structured-outputs/example-graph-treecover.png":::
332332

333-
We can define a generic schema that can be used to encode the information contained in the chart and then use it for further analysis. We use [Pyndatic objects as described before](#use-pydantic-objects).
333+
We can define a generic schema that can be used to encode the information contained in the chart and then use it for further analysis. We use [Pydantic objects as described before](#use-pydantic-objects).
334334

335335
```python
336336
from pydantic import BaseModel

0 commit comments

Comments
 (0)