lint fix
This commit is contained in:
@@ -1017,29 +1017,32 @@ describe("Generate E2E Tests", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding Provider (kimi-for-coding via Anthropic Messages)", () => {
|
describe.skipIf(!process.env.KIMI_API_KEY)(
|
||||||
const llm = getModel("kimi-coding", "kimi-for-coding");
|
"Kimi For Coding Provider (kimi-for-coding via Anthropic Messages)",
|
||||||
|
() => {
|
||||||
|
const llm = getModel("kimi-coding", "kimi-for-coding");
|
||||||
|
|
||||||
it("should complete basic text generation", { retry: 3 }, async () => {
|
it("should complete basic text generation", { retry: 3 }, async () => {
|
||||||
await basicTextGeneration(llm);
|
await basicTextGeneration(llm);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should handle tool calling", { retry: 3 }, async () => {
|
it("should handle tool calling", { retry: 3 }, async () => {
|
||||||
await handleToolCall(llm);
|
await handleToolCall(llm);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should handle streaming", { retry: 3 }, async () => {
|
it("should handle streaming", { retry: 3 }, async () => {
|
||||||
await handleStreaming(llm);
|
await handleStreaming(llm);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should handle thinking mode", { retry: 3 }, async () => {
|
it("should handle thinking mode", { retry: 3 }, async () => {
|
||||||
await handleThinking(llm, { thinkingEnabled: true, thinkingBudgetTokens: 2048 });
|
await handleThinking(llm, { thinkingEnabled: true, thinkingBudgetTokens: 2048 });
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should handle multi-turn with thinking and tools", { retry: 3 }, async () => {
|
it("should handle multi-turn with thinking and tools", { retry: 3 }, async () => {
|
||||||
await multiTurn(llm, { thinkingEnabled: true, thinkingBudgetTokens: 2048 });
|
await multiTurn(llm, { thinkingEnabled: true, thinkingBudgetTokens: 2048 });
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
describe.skipIf(!process.env.XIAOMI_API_KEY)(
|
describe.skipIf(!process.env.XIAOMI_API_KEY)(
|
||||||
"Xiaomi MiMo (API billing) Provider (Xiaomi MiMo-V2.5-Pro via Anthropic Messages)",
|
"Xiaomi MiMo (API billing) Provider (Xiaomi MiMo-V2.5-Pro via Anthropic Messages)",
|
||||||
|
|||||||
@@ -567,18 +567,22 @@ describe("totalTokens field", () => {
|
|||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|
||||||
describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding", () => {
|
describe.skipIf(!process.env.KIMI_API_KEY)("Kimi For Coding", () => {
|
||||||
it("kimi-for-coding - should return totalTokens equal to sum of components", { retry: 3, timeout: 60000 }, async () => {
|
it(
|
||||||
const llm = getModel("kimi-coding", "kimi-for-coding");
|
"kimi-for-coding - should return totalTokens equal to sum of components",
|
||||||
|
{ retry: 3, timeout: 60000 },
|
||||||
|
async () => {
|
||||||
|
const llm = getModel("kimi-coding", "kimi-for-coding");
|
||||||
|
|
||||||
console.log(`\nKimi For Coding / ${llm.id}:`);
|
console.log(`\nKimi For Coding / ${llm.id}:`);
|
||||||
const { first, second } = await testTotalTokensWithCache(llm, { apiKey: process.env.KIMI_API_KEY });
|
const { first, second } = await testTotalTokensWithCache(llm, { apiKey: process.env.KIMI_API_KEY });
|
||||||
|
|
||||||
logUsage("First request", first);
|
logUsage("First request", first);
|
||||||
logUsage("Second request", second);
|
logUsage("Second request", second);
|
||||||
|
|
||||||
assertTotalTokensEqualsComponents(first);
|
assertTotalTokensEqualsComponents(first);
|
||||||
assertTotalTokensEqualsComponents(second);
|
assertTotalTokensEqualsComponents(second);
|
||||||
});
|
},
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user