Merge pull request #3263 from pipecat-ai/pk/deprecate-openai-llm-context

Deprecate `OpenAILLMContext` and associated things
This commit is contained in:
kompfner
2025-12-19 13:19:48 -05:00
committed by GitHub
18 changed files with 377 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
- `OpenAILLMContext` and its associated things (context aggregators, etc.) are now deprecated in favor of the universal `LLMContext` and its associated things.
From the developer's point of view, switching to using `LLMContext` machinery will usually be a matter of going from this:
```python
context = OpenAILLMContext(messages, tools)
context_aggregator = llm.create_context_aggregator(context)
```
To this:
```
context = LLMContext(messages, tools)
context_aggregator = LLMContextAggregatorPair(context)
```