Skip to content

Commit 490b502

Browse files
committed
fix(requesty): update test to expect second createOptions param in completePrompt
1 parent 8ab7156 commit 490b502

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/api/providers/__tests__/requesty.spec.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,12 +585,15 @@ describe("RequestyHandler", () => {
585585

586586
await handler.completePrompt("test prompt")
587587

588-
expect(mockCreate).toHaveBeenCalledWith({
589-
model: "anthropic/claude-sonnet-5",
590-
max_tokens: 8192,
591-
messages: [{ role: "system", content: "test prompt" }],
592-
temperature: undefined,
593-
})
588+
expect(mockCreate).toHaveBeenCalledWith(
589+
{
590+
model: "anthropic/claude-sonnet-5",
591+
max_tokens: 8192,
592+
messages: [{ role: "system", content: "test prompt" }],
593+
temperature: undefined,
594+
},
595+
{},
596+
)
594597
})
595598

596599
it("handles API errors", async () => {

0 commit comments

Comments
 (0)