Skip to content

Commit af56933

Browse files
committed
add missing example
1 parent 09bf462 commit af56933

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

docs/cody/enterprise/model-config-examples.mdx

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,44 @@ If you want to override the provider config for some models in the namespace and
5656

5757
Example configuration
5858

59-
{/*TODO: Missing code?*/}
59+
```json
60+
{
61+
"cody.enabled": true,
62+
"modelConfiguration": {
63+
"sourcegraph": {},
64+
"providerOverrides": [
65+
{
66+
"id": "anthropic-byok",
67+
"displayName": "Anthropic BYOK",
68+
"serverSideConfig": {
69+
"type": "anthropic",
70+
"accessToken": "token",
71+
"endpoint": "https://api.anthropic.com/v1/messages"
72+
}
73+
}
74+
],
75+
"modelOverrides": [
76+
{
77+
"modelRef": "anthropic-byok::2023-06-01::claude-3.5-sonnet",
78+
"displayName": "Claude 3.5 Sonnet",
79+
"modelName": "claude-3-5-sonnet-latest",
80+
"capabilities": ["edit", "chat"],
81+
"category": "accuracy",
82+
"status": "stable",
83+
"tier": "free",
84+
"contextWindow": {
85+
"maxInputTokens": 45000,
86+
"maxOutputTokens": 4000
87+
}
88+
},
89+
],
90+
"defaultModels": {
91+
"chat": "anthropic-byok::2023-06-01::claude-3.5-sonnet",
92+
"fastChat": "anthropic::2023-06-01::claude-3-haiku",
93+
"autocomplete": "fireworks::v1::deepseek-coder-v2-lite-base"
94+
}
95+
}
96+
```
6097

6198
In the configuration above, we:
6299

0 commit comments

Comments
 (0)