Explorar el Código

test: allow native google provider schema

fanghanjun hace 6 meses
padre
commit
61e68a67e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/core/src/__tests__/providers-schema.test.ts

+ 1 - 1
packages/core/src/__tests__/providers-schema.test.ts

@@ -7,7 +7,7 @@ describe("providers structural integrity", () => {
     for (const p of getAllEndpoints()) {
       expect(p.id).toBeTruthy();
       expect(p.label).toBeTruthy();
-      expect(p.api).toMatch(/^(openai-completions|openai-responses|anthropic-messages)$/);
+      expect(p.api).toMatch(/^(openai-completions|openai-responses|anthropic-messages|google-generative-ai)$/);
       // gateway/anchor provider 允许 baseUrl 为空(由用户填)
       if (gatewayProviders.has(p.id)) {
         expect(typeof p.baseUrl).toBe("string");