fix: register google vertex setup provider · openclaw/openclaw@68aedf3
shakkernerd
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { describe, expect, it } from "vitest"; |
| 2 | +import setupEntry from "./setup-api.js"; |
| 3 | + |
| 4 | +describe("google setup entry", () => { |
| 5 | +it("registers setup runtime providers declared by the manifest", () => { |
| 6 | +const providerIds: string[] = []; |
| 7 | +const cliBackendIds: string[] = []; |
| 8 | + |
| 9 | +setupEntry.register({ |
| 10 | +registerProvider(provider) { |
| 11 | +providerIds.push(provider.id); |
| 12 | +}, |
| 13 | +registerCliBackend(backend) { |
| 14 | +cliBackendIds.push(backend.id); |
| 15 | +}, |
| 16 | +} as never); |
| 17 | + |
| 18 | +expect(providerIds).toContain("google-vertex"); |
| 19 | +expect(cliBackendIds).toContain("google-gemini-cli"); |
| 20 | +}); |
| 21 | +}); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。