mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 07:11:06 +00:00
18 lines
583 B
TypeScript
18 lines
583 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { registerSingleProviderPlugin } from "../../test/helpers/plugins/plugin-registration.js";
|
|
import openrouterPlugin from "./index.js";
|
|
|
|
describe("openrouter provider hooks", () => {
|
|
it("owns native reasoning output mode", async () => {
|
|
const provider = await registerSingleProviderPlugin(openrouterPlugin);
|
|
|
|
expect(
|
|
provider.resolveReasoningOutputMode?.({
|
|
provider: "openrouter",
|
|
modelApi: "openai-completions",
|
|
modelId: "openai/gpt-5.4",
|
|
} as never),
|
|
).toBe("native");
|
|
});
|
|
});
|