fix: increase max_messages to 500 as temporary workaround
Temporarily increase default max_messages from 50 to 500 to allow more context in conversations until a proper consolidation strategy is implemented.
This commit is contained in:
parent
afc8d50659
commit
a3f4bb74ff
@ -41,7 +41,7 @@ class Session:
|
|||||||
self.messages.append(msg)
|
self.messages.append(msg)
|
||||||
self.updated_at = datetime.now()
|
self.updated_at = datetime.now()
|
||||||
|
|
||||||
def get_history(self, max_messages: int = 50) -> list[dict[str, Any]]:
|
def get_history(self, max_messages: int = 500) -> list[dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
Get message history for LLM context.
|
Get message history for LLM context.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user