feat: implement Stream Spoofing interceptor and robust format preservation patches

This commit is contained in:
lingyuzeng
2026-03-22 17:55:47 +08:00
parent ebd73e1c69
commit ce99e8b418
12 changed files with 426 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ describe('Response Rewriter', () => {
expect(toolCall.type).toBe('function');
expect(toolCall.function.name).toBe('read');
const argsObject = JSON.parse(toolCall.function.arguments);
const argsObject = toolCall.function.arguments;
expect(argsObject).toEqual({ path: '/tmp/test.txt' });
});