You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: standardize Gemini config to use project_id consistently (#241)
- Rename the configuration key gemini.project to gemini.project_id throughout documentation and code
- Update all related code, flags, and validation to use projectID instead of project in the Gemini provider configuration
Signed-off-by: Bo-Yi Wu <[email protected]>
|**openai.provider**| Set to `gemini` to use Gemini provider |`gemini`| Yes ||
251
-
|**gemini.api_key**| API key for Gemini or VertexAI |`xxxxxxx`| Yes ||
252
-
|**gemini.model**| Model name (see [Gemini models][61]) |`gemini-2.0-flash`| Yes ||
253
-
|**gemini.backend**| Gemini backend: `BackendGeminiAPI` (default, for Gemini API) or `BackendVertexAI` (for VertexAI) |`BackendGeminiAPI`| No |`BackendGeminiAPI`|
254
-
|**gemini.project**| VertexAI project ID (required if using `BackendVertexAI`) |`my-gcp-project`| Cond. ||
255
-
|**gemini.location**| VertexAI location (required if using `BackendVertexAI`) |`us-central1`| Cond. ||
248
+
| Option | Description | Example Value | Required | Default |
|**openai.provider**| Set to `gemini` to use Gemini provider |`gemini`| Yes ||
251
+
|**gemini.api_key**| API key for Gemini or VertexAI |`xxxxxxx`| Yes ||
252
+
|**gemini.model**| Model name (see [Gemini models][61]) |`gemini-2.0-flash`| Yes ||
253
+
|**gemini.backend**| Gemini backend: `BackendGeminiAPI` (default, for Gemini API) or `BackendVertexAI` (for VertexAI) |`BackendGeminiAPI`| No |`BackendGeminiAPI`|
254
+
|**gemini.project_id**| VertexAI project ID (required if using `BackendVertexAI`) |`my-gcp-project`| Cond. ||
255
+
|**gemini.location**| VertexAI location (required if using `BackendVertexAI`) |`us-central1`| Cond. ||
256
256
257
257
#### Example: Gemini API (default backend)
258
258
@@ -269,7 +269,7 @@ codegpt config set gemini.api_key xxxxxxx
269
269
codegpt config set openai.provider gemini
270
270
codegpt config set openai.model gemini-2.0-flash
271
271
codegpt config set gemini.backend BackendVertexAI
272
-
codegpt config set gemini.project my-gcp-project
272
+
codegpt config set gemini.project_id my-gcp-project
0 commit comments