Skip to content

Commit

Permalink
Fix cross-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Jun 14, 2024
1 parent 60d17c1 commit af34be1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ When working with model providers behind an API, there's no direct way of access
```

!!! Note
Take a look at [`InstructorStructuredOutputType`][distilabel.steps.tasks.structured_outputs.instructor.InstructorStructuredOutputType] to see the expected format
Take a look at [`InstructorStructuredOutputType`][distilabel.steps.tasks.typing.InstructorStructuredOutputType] to see the expected format
of the `structured_output` dict variable.

The following is the same example you can see with `outlines`'s `JSON` section for comparison purposes.
Expand Down
12 changes: 0 additions & 12 deletions src/distilabel/steps/tasks/structured_outputs/instructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@
"""Available clients that can be wrapped with `instructor`. """


# class InstructorStructuredOutputType(TypedDict):
# """TypedDict to represent the structured output configuration from `instructor`."""

# schema: Type[BaseModel]
# """The schema to use for the structured output, a `pydantic.BaseModel` class. """
# mode: Optional["instructor.Mode"]
# """Generation mode. Take a look at `instructor.Mode` for more information, if not informed it will
# be determined automatically. """
# max_retries: int
# """Number of times to reask the model in case of error, if not set will default to the model's default. """


def _client_patcher(framework: InstructorFrameworks) -> Tuple[Callable, str]:
"""Helper function to return the appropriate instructor client for the given framework.
Expand Down

0 comments on commit af34be1

Please sign in to comment.