services: missing kwargs in anthropic/openai user context aggregator
This commit is contained in:
@@ -651,8 +651,8 @@ class AnthropicLLMContext(OpenAILLMContext):
|
|||||||
|
|
||||||
|
|
||||||
class AnthropicUserContextAggregator(LLMUserContextAggregator):
|
class AnthropicUserContextAggregator(LLMUserContextAggregator):
|
||||||
def __init__(self, context: OpenAILLMContext | AnthropicLLMContext):
|
def __init__(self, context: OpenAILLMContext | AnthropicLLMContext, **kwargs):
|
||||||
super().__init__(context=context)
|
super().__init__(context=context, **kwargs)
|
||||||
|
|
||||||
if isinstance(context, OpenAILLMContext):
|
if isinstance(context, OpenAILLMContext):
|
||||||
self._context = AnthropicLLMContext.from_openai_context(context)
|
self._context = AnthropicLLMContext.from_openai_context(context)
|
||||||
|
|||||||
@@ -555,8 +555,8 @@ class OpenAIImageMessageFrame(Frame):
|
|||||||
|
|
||||||
|
|
||||||
class OpenAIUserContextAggregator(LLMUserContextAggregator):
|
class OpenAIUserContextAggregator(LLMUserContextAggregator):
|
||||||
def __init__(self, context: OpenAILLMContext):
|
def __init__(self, context: OpenAILLMContext, **kwargs):
|
||||||
super().__init__(context=context)
|
super().__init__(context=context, **kwargs)
|
||||||
|
|
||||||
async def process_frame(self, frame, direction):
|
async def process_frame(self, frame, direction):
|
||||||
await super().process_frame(frame, direction)
|
await super().process_frame(frame, direction)
|
||||||
|
|||||||
Reference in New Issue
Block a user