trim out random period message

This commit is contained in:
dal 2025-07-21 10:17:12 -06:00
parent 215bca7db4
commit 4dd59a299d
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 1 additions and 1 deletions

View File

@ -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: {