Skip to content

Commit d063bf7

Browse files
committed
Update tests
1 parent 35129ba commit d063bf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe("OVHcloudAIEndpointsHandler", () => {
180180
type: "usage",
181181
inputTokens: 15,
182182
outputTokens: 25,
183-
totalCost: calculateApiCostOpenAI(info, 15, 25),
183+
totalCost: calculateApiCostOpenAI(info, 15, 25).totalCost || undefined,
184184
})
185185
})
186186

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe("SyntheticHandler", () => {
201201
expect(mockCreate).toHaveBeenCalledWith(
202202
expect.objectContaining({
203203
model: modelId,
204-
max_tokens: modelInfo.maxTokens,
204+
max_tokens: 0.2 * modelInfo.maxTokens,
205205
temperature: 0.5,
206206
messages: expect.arrayContaining([{ role: "system", content: systemPrompt }]),
207207
stream: true,

0 commit comments

Comments
 (0)