Fix Anthropic LLM's run_inference so that it works even when extended thinking is enabled

This commit is contained in:
Paul Kompfner
2025-12-17 11:55:46 -05:00
parent 21a55f6aae
commit cdd6f5aa6a

View File

@@ -303,7 +303,7 @@ class AnthropicLLMService(LLMService):
# LLM completion
response = await self._client.beta.messages.create(**params)
return response.content[0].text
return next((block.text for block in response.content if hasattr(block, "text")), None)
def create_context_aggregator(
self,