mirror of https://github.com/buster-so/buster.git
trim out random period message
This commit is contained in:
parent
215bca7db4
commit
4dd59a299d
|
@ -37,7 +37,7 @@ export const anthropicCachedModel = (modelId: string) => {
|
|||
.filter((systemMessage: { text?: string; content?: string }) => {
|
||||
// Filter out messages with empty text or content
|
||||
const messageContent = systemMessage.text || systemMessage.content || '';
|
||||
return messageContent.trim() !== '';
|
||||
return messageContent.trim() !== '' && messageContent.trim() !== '.';
|
||||
})
|
||||
.map(
|
||||
(systemMessage: {
|
||||
|
|
Loading…
Reference in New Issue