mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
fix: add hasNativeApiProtocol assertion in native tool calling tests
This commit is contained in:
parent
134b231ffd
commit
fe565781b6
1 changed files with 8 additions and 0 deletions
|
|
@ -60,6 +60,14 @@ function assertNativeProtocolUsed(verification: NativeProtocolVerification, test
|
|||
`This indicates an API request was made.`,
|
||||
)
|
||||
|
||||
// Check that native protocol was actually used (anthropic/openai format)
|
||||
assert.strictEqual(
|
||||
verification.hasNativeApiProtocol,
|
||||
true,
|
||||
`[${testName}] Native API protocol should be used. ` +
|
||||
`Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`,
|
||||
)
|
||||
|
||||
// Check that response doesn't contain XML tool tags
|
||||
assert.strictEqual(
|
||||
verification.responseIsNotXML,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue