Skip to content

Commit 0cf0b63

Browse files
authored
Update models example json (#876)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent a41c937 commit 0cf0b63

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

docs/cody/clients/install-vscode.mdx

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,30 +366,39 @@ Once configured, and VS Code has been restarted, you can select the configured m
366366
Example VS Code user settings JSON configuration:
367367

368368
```json
369-
{
370-
"cody.dev.models": [
371-
// Google (e.g. Gemini 1.5 Pro)
369+
{
370+
"cody.dev.models": [
372371
{
373372
"provider": "google",
374-
"model": "gemini-1.5-pro-latest",
375-
"tokens": 1000000,
376-
"apiKey": "xyz"
373+
"model": "gemini-2.0-flash-exp",
374+
"inputTokens": 1048576,
375+
"outputTokens": 8192,
376+
"apiKey": "<YOUR_OWN_API_KEY>",
377+
"options": {
378+
"temperature": 0.0
379+
}
377380
},
378-
// Groq (e.g. llama2 70b)
379381
{
380382
"provider": "groq",
381383
"model": "llama2-70b-4096",
382-
"tokens": 4096,
383-
"apiKey": "xyz"
384+
"inputTokens": 4000,
385+
"outputTokens": 4000,
386+
"apiKey": "<YOUR_OWN_API_KEY>",
387+
"options": {
388+
"temperature": 0.0
389+
}
384390
},
385-
// OpenAI & OpenAI-compatible APIs
386391
{
387-
"provider": "openai", // keep groq as provider
392+
"provider": "openai",
388393
"model": "some-model-id",
389-
"apiKey": "xyz",
394+
"inputTokens": 32000,
395+
"outputTokens": 4000,
396+
"apiKey": "<YOUR_OWN_API_KEY>",
397+
"options": {
398+
"temperature": 0.0
399+
},
390400
"apiEndpoint": "https://host.domain/path"
391401
},
392-
// Ollama (remote)
393402
{
394403
"provider": "ollama",
395404
"model": "some-model-id",

0 commit comments

Comments
 (0)