23 lines
1.2 KiB
Markdown
23 lines
1.2 KiB
Markdown
- ⚠️ Removed deprecated service-specific context and aggregator machinery, which was superseded by the universal `LLMContext` system.
|
|
|
|
Service-specific classes removed: `AnthropicLLMContext`, `AnthropicContextAggregatorPair`, `AWSBedrockLLMContext`, `AWSBedrockContextAggregatorPair`, `OpenAIContextAggregatorPair`, and their user/assistant aggregators. Also removed `create_context_aggregator()` from `LLMService`, `OpenAILLMService`, `AnthropicLLMService`, and `AWSBedrockLLMService`.
|
|
|
|
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:
|
|
|
|
```python
|
|
context = OpenAILLMContext(messages, tools)
|
|
context_aggregator = llm.create_context_aggregator(context)
|
|
```
|
|
|
|
To this:
|
|
|
|
```python
|
|
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)
|
|
```
|