feat: add system time to model prompt

This commit is contained in:
lofyer
2026-08-11 20:08:43 +08:00
parent 9bbaa2c53b
commit beb756bb2e
2 changed files with 21 additions and 0 deletions
+3
View File
@@ -251,6 +251,9 @@ describe('ModelAgentRuntime', () => {
model: 'sonnet-5',
stream: true
})
expect(body.system).toMatch(
/Current system time: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\./u
)
expect(body.system).toContain('# 文档写作')
expect(body.system).toContain('Trusted specialist system instruction.')
expect(events).toContainEqual(