Merge pull request #578 from thecodacus/context-optimization

feat(context optimization): Optimize LLM Context Management and File Handling
This commit is contained in:
Anirban Kar
2024-12-14 02:08:43 +05:30
committed by GitHub
5 changed files with 119 additions and 10 deletions

View File

@@ -23,14 +23,14 @@ const messageParser = new StreamingMessageParser({
logger.trace('onActionOpen', data.action);
// we only add shell actions when when the close tag got parsed because only then we have the content
if (data.action.type !== 'shell') {
if (data.action.type === 'file') {
workbenchStore.addAction(data);
}
},
onActionClose: (data) => {
logger.trace('onActionClose', data.action);
if (data.action.type === 'shell') {
if (data.action.type !== 'file') {
workbenchStore.addAction(data);
}