mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fixes tests
This commit is contained in:
parent
a489a8b1e4
commit
4073bdcb20
1 changed files with 10 additions and 0 deletions
|
|
@ -192,6 +192,11 @@ describe("UnboundHandler", () => {
|
|||
temperature: 0,
|
||||
max_tokens: 8192,
|
||||
}),
|
||||
expect.objectContaining({
|
||||
headers: expect.objectContaining({
|
||||
"X-Unbound-Metadata": expect.stringContaining("roo-code"),
|
||||
}),
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
|
|
@ -233,6 +238,11 @@ describe("UnboundHandler", () => {
|
|||
messages: [{ role: "user", content: "Test prompt" }],
|
||||
temperature: 0,
|
||||
}),
|
||||
expect.objectContaining({
|
||||
headers: expect.objectContaining({
|
||||
"X-Unbound-Metadata": expect.stringContaining("roo-code"),
|
||||
}),
|
||||
}),
|
||||
)
|
||||
expect(mockCreate.mock.calls[0][0]).not.toHaveProperty("max_tokens")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue