Преглед изворни кода

test: allow native google provider schema

fanghanjun пре 6 месеци
родитељ
комит
61e68a67e5
1 измењених фајлова са 1 додато и 1 уклоњено
  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");