Skip to content

Commit 1467b00

Browse files
committed
wip
1 parent 90ac8d0 commit 1467b00

File tree

1 file changed

+66
-6
lines changed

1 file changed

+66
-6
lines changed

docs/cody/model-configuration/examples.mdx

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,16 +357,76 @@ TODO
357357

358358
</Accordion>
359359

360-
<Accordion title="Google Vertex (Anthropic)"></Accordion>
360+
<Accordion title="Google Vertex (Anthropic)">
361+
362+
```json
363+
"modelConfiguration": {
364+
"sourcegraph": null,
365+
"providerOverrides": [
366+
{
367+
"id": "google",
368+
"displayName": "Google Anthropic",
369+
"serverSideConfig": {
370+
"type": "google",
371+
"accessToken": "token",
372+
"endpoint": "https://us-east5-aiplatform.googleapis.com/v1/projects/project-name/locations/us-east5/publishers/anthropic/models"
373+
}
374+
}
375+
],
376+
"modelOverrides": [
377+
{
378+
"modelRef": "google::unknown::claude-3-5-sonnet",
379+
"displayName": "Claude 3.5 Sonnet (via Google/Vertex)",
380+
"modelName": "claude-3-5-sonnet@20240620",
381+
"contextWindow": {
382+
"maxInputTokens": 45000,
383+
"maxOutputTokens": 4000
384+
},
385+
"capabilities": ["chat"],
386+
"category": "accuracy",
387+
"status": "stable"
388+
},
389+
{
390+
"modelRef": "google::unknown::claude-3-haiku",
391+
"displayName": "Claude 3 Haiku",
392+
"modelName": "claude-3-haiku@20240307",
393+
"capabilities": ["autocomplete", "edit", "chat"],
394+
"category": "speed",
395+
"status": "stable",
396+
"tier": "free",
397+
"contextWindow": {
398+
"maxInputTokens": 7000,
399+
"maxOutputTokens": 4000
400+
}
401+
},
402+
],
403+
"defaultModels": {
404+
"chat": "google::unknown::claude-3-5-sonnet",
405+
"fastChat": "google::unknown::claude-3-5-sonnet",
406+
"autocomplete": "google::unknown::claude-3-haiku"
407+
}
408+
}
409+
```
410+
411+
In the configuration above, we:
412+
413+
- Set up a provider override for Google Anthropic, routing requests for this provider directly to the specified endpoint (bypassing Cody Gateway).
414+
- Add two OpenAI models:
415+
- `"google::unknown::claude-3-5-sonnet"` with "chat" capabiity - used for "chat" and "fastChat"
416+
- `"google::unknown::claude-3-haiku"` with "autocomplete" capability - used for "autocomplete".
417+
418+
</Accordion>
419+
361420
<Accordion title="Google Vertex (Gemini)"></Accordion>
362-
<Accordion title="Google Vertex (public)"></Accordion>
421+
422+
<Accordion title="Google Vertex (public)">
423+
424+
TODO
425+
426+
</Accordion>
363427

364428
<Accordion title="AWS Bedrock"></Accordion>
365429

366430
## Self-hosted models
367431

368432
TODO
369-
370-
```
371-
372-
```

0 commit comments

Comments
 (0)