Skip to content

Commit daf0046

Browse files
committed
fixes
1 parent 3c38779 commit daf0046

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

integrations/anthropic/src/haystack_integrations/components/generators/anthropic/chat/foundry_chat_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __init__(
152152

153153
_check_duplicate_tool_names(flatten_tools_or_toolsets(tools))
154154

155-
self.api_key = api_key
155+
self.api_key: Secret | None = api_key # type: ignore[assignment]
156156
self.resource = resource or os.environ.get("ANTHROPIC_FOUNDRY_RESOURCE")
157157
self.endpoint = endpoint
158158
self.model = model
@@ -229,7 +229,7 @@ def run(
229229
"""
230230
if not self._is_warmed_up:
231231
self.warm_up()
232-
return super().run(
232+
return super(AnthropicFoundryChatGenerator, self).run(
233233
messages=messages, streaming_callback=streaming_callback, generation_kwargs=generation_kwargs, tools=tools
234234
)
235235

@@ -255,7 +255,7 @@ async def run_async(
255255
"""
256256
if not self._is_warmed_up:
257257
self.warm_up()
258-
return await super().run_async(
258+
return await super(AnthropicFoundryChatGenerator, self).run_async(
259259
messages=messages, streaming_callback=streaming_callback, generation_kwargs=generation_kwargs, tools=tools
260260
)
261261

0 commit comments

Comments
 (0)