Commit 8bf8326
committed
feat: rewrite VertexEmbedder to use @google/genai library with multiple auth options
- Replace OpenAI-compatible approach with native @google/genai SDK
- Add support for multiple authentication methods:
- API key (uses regular Gemini API endpoint)
- JSON credentials (service account)
- Key file path
- Application default credentials
- Add projectId and location fields for Vertex AI configuration
- Update UI to show all authentication options for Vertex
- Update tests to reflect new implementation
- Update all related type definitions and interfaces1 parent a1c10fe commit 8bf8326
File tree
11 files changed
+624
-134
lines changed- packages/types/src
- src
- core/webview
- services/code-index
- embedders
- __tests__
- interfaces
- webview-ui/src
- components/chat
- i18n/locales/en
11 files changed
+624
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1554 | 1554 | | |
1555 | 1555 | | |
1556 | 1556 | | |
| 1557 | + | |
| 1558 | + | |
1557 | 1559 | | |
1558 | 1560 | | |
1559 | 1561 | | |
| |||
1726 | 1728 | | |
1727 | 1729 | | |
1728 | 1730 | | |
| 1731 | + | |
| 1732 | + | |
1729 | 1733 | | |
1730 | 1734 | | |
1731 | 1735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1998 | 1998 | | |
1999 | 1999 | | |
2000 | 2000 | | |
| 2001 | + | |
| 2002 | + | |
2001 | 2003 | | |
2002 | 2004 | | |
2003 | 2005 | | |
| |||
2028 | 2030 | | |
2029 | 2031 | | |
2030 | 2032 | | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2031 | 2051 | | |
2032 | 2052 | | |
2033 | 2053 | | |
| |||
2149 | 2169 | | |
2150 | 2170 | | |
2151 | 2171 | | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2152 | 2177 | | |
2153 | 2178 | | |
2154 | 2179 | | |
| |||
2158 | 2183 | | |
2159 | 2184 | | |
2160 | 2185 | | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
2161 | 2189 | | |
2162 | 2190 | | |
2163 | 2191 | | |
| |||
0 commit comments