mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 18:02:57 +00:00
24 lines
888 B
TypeScript
24 lines
888 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
buildGoogleStaticCatalogProvider,
|
|
buildGoogleVertexStaticCatalogProvider,
|
|
} from "./provider-catalog.js";
|
|
|
|
describe("google provider catalog", () => {
|
|
it("registers current Gemini rows for the Google Vertex provider", () => {
|
|
const provider = buildGoogleVertexStaticCatalogProvider();
|
|
|
|
expect(provider.api).toBe("google-vertex");
|
|
expect(provider.baseUrl).toBe("https://{location}-aiplatform.googleapis.com");
|
|
expect(provider.models.map((model) => model.id)).toEqual(
|
|
expect.arrayContaining(["gemini-2.5-pro", "gemini-3.1-pro-preview"]),
|
|
);
|
|
});
|
|
|
|
it("keeps Google AI Studio and Vertex model ids aligned", () => {
|
|
expect(buildGoogleVertexStaticCatalogProvider().models.map((model) => model.id)).toEqual(
|
|
buildGoogleStaticCatalogProvider().models.map((model) => model.id),
|
|
);
|
|
});
|
|
});
|