Skip to content

Remove Gemini models via Vertex AI mode config example #1240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions docs/cody/enterprise/model-config-examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -668,63 +668,6 @@ In the configuration above,

</Accordion>

<Accordion title="Google Vertex (Gemini)">

```json
"modelConfiguration": {
"sourcegraph": null,
"providerOverrides": [
{
"id": "google",
"displayName": "Google Gemini",
"serverSideConfig": {
"type": "google",
"accessToken": "token",
"endpoint": "https://us-east5-aiplatform.googleapis.com/v1/projects/project-name/locations/us-east5/publishers/anthropic/models"
}
}
],
"modelOverrides": [
{
"modelRef": "google::unknown::claude-3-5-sonnet",
"displayName": "Claude 3.5 Sonnet (via Google Vertex)",
"modelName": "claude-3-5-sonnet@20240620",
"contextWindow": {
"maxInputTokens": 45000,
"maxOutputTokens": 4000
},
"capabilities": ["chat"],
"category": "accuracy",
"status": "stable"
},
{
"modelRef": "google::unknown::claude-3-haiku",
"displayName": "Claude 3 Haiku",
"modelName": "claude-3-haiku@20240307",
"capabilities": ["autocomplete", "chat"],
"category": "speed",
"status": "stable",
"contextWindow": {
"maxInputTokens": 7000,
"maxOutputTokens": 4000
}
},
],
"defaultModels": {
"chat": "google::unknown::claude-3-5-sonnet",
"fastChat": "google::unknown::claude-3-5-sonnet",
"codeCompletion": "google::unknown::claude-3-haiku"
}
}
```

In the configuration above,

- Set up a provider override for Google Anthropic, routing requests for this provider directly to the specified endpoint (bypassing Cody Gateway)
- Add two Anthropic models: - `"google::unknown::claude-3-5-sonnet"` with "chat" capabiity - used for "chat" and "fastChat" - `"google::unknown::claude-3-haiku"` with "autocomplete" capability - used for "codeCompletion"

</Accordion>

<Accordion title="Amazon Bedrock">

```json
Expand Down