Skip to content

Commit

Permalink
Corrected AzureOpenAILLM path to mock the internal class (#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
dameikle and pre-commit-ci[bot] authored Feb 18, 2025
1 parent 0009d1c commit 2d4ec9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/distilabel/models/llms/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def load(self) -> None:
# This is a workaround to avoid the `OpenAILLM` calling the _prepare_structured_output
# in the load method before we have the proper client.
with patch(
"distilabel.models.openai.OpenAILLM._prepare_structured_output", lambda x: x
"distilabel.models.llms.openai.OpenAILLM._prepare_structured_output",
lambda x: x,
):
super().load()

Expand Down

0 comments on commit 2d4ec9a

Please sign in to comment.