1.2 KiB
-
⚠️ Removed deprecated service-specific context and aggregator machinery, which was superseded by the universal
LLMContextsystem.Service-specific classes removed:
AnthropicLLMContext,AnthropicContextAggregatorPair,AWSBedrockLLMContext,AWSBedrockContextAggregatorPair,OpenAIContextAggregatorPair, and their user/assistant aggregators. Also removedcreate_context_aggregator()fromLLMService,OpenAILLMService,AnthropicLLMService, andAWSBedrockLLMService.Base aggregator classes removed (from
pipecat.processors.aggregators.llm_response):BaseLLMResponseAggregator,LLMContextResponseAggregator,LLMUserContextAggregator,LLMAssistantContextAggregator,LLMUserResponseAggregator,LLMAssistantResponseAggregator.From the developer's point of view, migrating will usually be a matter of going from this:
context = OpenAILLMContext(messages, tools) context_aggregator = llm.create_context_aggregator(context)To this:
from pipecat.processors.aggregators.llm_context import LLMContext from pipecat.processors.aggregators.llm_response_universal import LLMContextAggregatorPair context = LLMContext(messages, tools) context_aggregator = LLMContextAggregatorPair(context)