fix: update summarizer_exchange model to use default model from input exchange (#139)
This commit is contained in:
@@ -23,7 +23,7 @@ class ContextSummarizer(ContextTruncate):
|
|||||||
summarizer_exchange = exchange.replace(
|
summarizer_exchange = exchange.replace(
|
||||||
system=Message.load("summarizer.jinja").text,
|
system=Message.load("summarizer.jinja").text,
|
||||||
moderator=PassiveModerator(),
|
moderator=PassiveModerator(),
|
||||||
model=self.model,
|
model=self.model if self.model else exchange.model,
|
||||||
messages=messages_to_summarize,
|
messages=messages_to_summarize,
|
||||||
checkpoint_data=CheckpointData(),
|
checkpoint_data=CheckpointData(),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user