mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 20:17:03 +00:00
fix(proxy): update tests for tool_result+text and disconnect handler changes
This commit is contained in:
1 parent
a0f91761ed
commit
b2a4579098
2 files changed
+6
-8
No files matched your search
@@ -120,7 +120,7 @@ describe('ProxyRequestTransformer regressions', () => {
|
||||
},
|
||||
],
|
||||
})
|
||||
).toThrow('tool_result blocks must come before other user content');
|
||||
).not.toThrow();
|
||||
|
||||
expect(() =>
|
||||
new ProxyRequestTransformer().transform({
|
||||
@@ -135,7 +135,7 @@ describe('ProxyRequestTransformer regressions', () => {
|
||||
},
|
||||
],
|
||||
})
|
||||
).toThrow('must start with tool_result blocks for pending tool_use ids');
|
||||
).toThrow('must include tool_result blocks for pending tool_use ids');
|
||||
});
|
||||
|
||||
it('rejects tool_result content that cannot be represented as OpenAI tool text', () => {
|
||||
|
||||
Reference in new issue
Block a user