Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/routing/REASONING_ROUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Reasoning Routing"
---

# Reasoning Routing

Reasoning routing rules extend the existing model and combo routing. When no active rule matches,
Expand Down
4 changes: 3 additions & 1 deletion tests/_cp_mock_module.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ export function resetSpawnCalls() {
spawnCalls.length = 0;
}

export default { execFile, execFileSync, fork, spawn, execSync, spawnSync };
const childProcessMock = { execFile, execFileSync, fork, spawn, execSync, spawnSync };

export default childProcessMock;
7 changes: 3 additions & 4 deletions tests/unit/antigravity-streaming-passthrough.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Antigravity streaming-passthrough behavior (#7408): the non-streaming drain
// path (raw SSE + chatCore-side parse) and the credits-extraction pass-through
// TransformStream. Moved verbatim from tests/unit/executor-antigravity.test.ts
// (frozen file-size cap) — same tests, same asserts.
// Antigravity streaming-passthrough behavior (#7408): the buffered non-streaming
// response path and the credits-extraction pass-through TransformStream. Kept
// separate from executor-antigravity.test.ts to respect its frozen file-size cap.
import { test } from "node:test";
import assert from "node:assert/strict";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import assert from "node:assert/strict";
import {
assignEditApiKeyProviderSpecificData,
buildAddProviderSpecificData,
} from "../../src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts";
} from "../../../src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts";

// #6850 — the AgentRouter quota tracker (open-sse/services/agentrouterQuotaFetcher.ts)
// reads connection.providerSpecificData.consoleApiKey (New-API System Access Token) and
Expand Down Expand Up @@ -58,7 +58,9 @@ function baseAddOptions(overrides: Partial<Parameters<typeof buildAddProviderSpe
};
}

function baseEditOptions(overrides: Partial<Parameters<typeof assignEditApiKeyProviderSpecificData>[0]>) {
function baseEditOptions(
overrides: Partial<Parameters<typeof assignEditApiKeyProviderSpecificData>[0]>
) {
return {
provider: "agentrouter",
formData: BASE_FORM_DATA,
Expand Down Expand Up @@ -107,7 +109,11 @@ test("buildAddProviderSpecificData still supports bailian-coding-plan consoleApi
const data = buildAddProviderSpecificData(
baseAddOptions({
provider: "bailian-coding-plan",
formData: { ...BASE_FORM_DATA, consoleApiKey: "oracle-token", newApiUserId: "should-not-persist" },
formData: {
...BASE_FORM_DATA,
consoleApiKey: "oracle-token",
newApiUserId: "should-not-persist",
},
})
);

Expand Down
13 changes: 13 additions & 0 deletions tests/unit/ui/lobe-provider-icons-stepfun.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";

describe("lobeProviderIcons Stepfun fallback", () => {
it("loads the icon registry and resolves the color slot to the Mono component", async () => {
const { getLobeProviderIcon } = await import("@/shared/components/lobeProviderIcons");

const monoIcon = getLobeProviderIcon("stepfun", "mono");
const colorIcon = getLobeProviderIcon("stepfun", "color");

expect(monoIcon).not.toBeNull();
expect(colorIcon).toBe(monoIcon);
});
});
Loading