fix(ai): use Xiaomi Token Plan Anthropic endpoint

closes #3912
This commit is contained in:
Mario Zechner
2026-05-02 01:36:34 +02:00
parent 80f06d3636
commit c0e046990e
11 changed files with 42 additions and 25 deletions

View File

@@ -994,9 +994,13 @@ describe("Generate E2E Tests", () => {
);
describe.skipIf(!process.env.XIAOMI_API_KEY)(
"Xiaomi MiMo Provider (Xiaomi MiMo-V2.5-Pro via OpenAI Completions)",
"Xiaomi MiMo Token Plan Provider (Xiaomi MiMo-V2.5-Pro via Anthropic Messages)",
() => {
const llm = getModel("xiaomi", "mimo-v2.5-pro");
const thinkingOptions = {
thinkingEnabled: true,
reasoningEffort: "high",
} satisfies StreamOptionsWithExtras;
it("should complete basic text generation", { retry: 3 }, async () => {
await basicTextGeneration(llm);
@@ -1009,6 +1013,14 @@ describe("Generate E2E Tests", () => {
it("should handle streaming", { retry: 3 }, async () => {
await handleStreaming(llm);
});
it("should handle thinking mode", { retry: 3 }, async () => {
await handleThinking(llm, thinkingOptions);
});
it("should handle multi-turn with thinking and tools", { retry: 3 }, async () => {
await multiTurn(llm, thinkingOptions);
});
},
);
// =========================================================================