fix(google): add missing gemini-3.1-flash-lite to google-vertex catal… · openclaw/openclaw@355cbc5
XuZehan-iCen
·
2026-06-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,8 +11,13 @@ describe("google provider catalog", () => {
|
11 | 11 | expect(provider.api).toBe("google-vertex"); |
12 | 12 | expect(provider.baseUrl).toBe("https://{location}-aiplatform.googleapis.com"); |
13 | 13 | expect(provider.models.map((model) => model.id)).toEqual( |
14 | | -expect.arrayContaining(["gemini-2.5-pro", "gemini-3.1-pro-preview"]), |
| 14 | +expect.arrayContaining(["gemini-2.5-pro", "gemini-3.1-pro-preview", "gemini-3.1-flash-lite"]), |
15 | 15 | ); |
| 16 | +expect(provider.models.find((model) => model.id === "gemini-3.1-flash-lite")).toMatchObject({ |
| 17 | +contextWindow: 1_048_576, |
| 18 | +maxTokens: 65_536, |
| 19 | +reasoning: true, |
| 20 | +}); |
16 | 21 | }); |
17 | 22 | |
18 | 23 | it("keeps Google AI Studio and Vertex model ids aligned", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,6 +43,15 @@ const GOOGLE_GEMINI_TEXT_MODELS: ModelDefinitionConfig[] = [
|
43 | 43 | contextWindow: 1_048_576, |
44 | 44 | maxTokens: 65_536, |
45 | 45 | }, |
| 46 | +{ |
| 47 | +id: "gemini-3.1-flash-lite", |
| 48 | +name: "Gemini 3.1 Flash Lite", |
| 49 | +reasoning: true, |
| 50 | +input: ["text", "image"], |
| 51 | +cost: GOOGLE_GEMINI_COST, |
| 52 | +contextWindow: 1_048_576, |
| 53 | +maxTokens: 65_536, |
| 54 | +}, |
46 | 55 | { |
47 | 56 | id: "gemini-3-flash-preview", |
48 | 57 | name: "Gemini 3 Flash Preview", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。