-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Copy link
Labels
bugSomething isn't workingSomething isn't workingpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Description
Describe the bug
When using the ChatHistoryTruncationReducer the reducer reduces the system prompt (both if added to the constructor via system_message or when manually added as first message to the history )
To Reproduce
Steps to reproduce the behavior:
- Create a History using the ChatHistoryTruncationReducer, and add a
target_count - populate the ChatHistory with more elements than the
target_count - call the reduce function
Expected behavior
I expect the System Prompt to be kept, as it is an integral part of the conversation
Screenshots
see first comment.
Platform
- Language: Python
- Source: pip semantic-kernel 1.34.0
- AI model: OpenAI:GPT-4o-mini(2024-12-01-preview)
- IDE: VS Code
- OS: Windows
Additional context
Nothing, but additional context can be provided if needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Type
Projects
Status
Bug