Skip to content

Commit

Permalink
fix: correct patch target for _prepare_structured_output in AzureOpen…
Browse files Browse the repository at this point in the history
…AILLM.load
  • Loading branch information
FarrelRamdhani committed Mar 2, 2025
1 parent 1b6c101 commit 1e4f0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distilabel/models/llms/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ 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 1e4f0c9

Please sign in to comment.