Skip to content

Commit 2954d3c

Browse files
committed
Don't need warm_up method anymore
1 parent a1e9a95 commit 2954d3c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

haystack/components/generators/chat/azure_responses.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,6 @@ def __init__(
142142
tools_strict=tools_strict,
143143
http_client_kwargs=http_client_kwargs,
144144
)
145-
self._is_warmed_up = False
146-
147-
def warm_up(self):
148-
"""
149-
Warm up the Azure OpenAI chat generator.
150-
151-
This will warm up the tools registered in the chat generator.
152-
This method is idempotent and will only warm up the tools once.
153-
"""
154-
if not self._is_warmed_up:
155-
warm_up_tools(self.tools)
156-
self._is_warmed_up = True
157145

158146
def to_dict(self) -> dict[str, Any]:
159147
"""

0 commit comments

Comments
 (0)