diff --git a/src/langbot/pkg/provider/modelmgr/requesters/anthropicmsgs.py b/src/langbot/pkg/provider/modelmgr/requesters/anthropicmsgs.py index 9394b73d..1428dc88 100644 --- a/src/langbot/pkg/provider/modelmgr/requesters/anthropicmsgs.py +++ b/src/langbot/pkg/provider/modelmgr/requesters/anthropicmsgs.py @@ -288,10 +288,10 @@ class AnthropicMessages(requester.ProviderAPIRequester): think_started = False think_ended = False finish_reason = False - content = '' tool_name = '' tool_id = '' async for chunk in await self.client.messages.create(**args): + content = '' tool_call = {'id': None, 'function': {'name': None, 'arguments': None}, 'type': 'function'} if isinstance( chunk, anthropic.types.raw_content_block_start_event.RawContentBlockStartEvent