Skip to content

Instantly share code, notes, and snippets.

@ca4ti
Forked from pythoninthegrass/README.md
Created February 3, 2025 21:53
Show Gist options
  • Save ca4ti/373d3a46c8ded46416a2f54d0a26b4a7 to your computer and use it in GitHub Desktop.
Save ca4ti/373d3a46c8ded46416a2f54d0a26b4a7 to your computer and use it in GitHub Desktop.
Ollama + Continue.dev VSCode settings

Ollama

Quickstart

# install ollama
brew install --cask ollama

# install continue.dev
code --install-extension Continue.continue

# general purpose llm
ollama run llama2

# coding llm
ollama run deepseek-coder:6.7b

# autocomplete llm
ollama run starcoder2:3b

Configure Continue VSCode Extension

  • Select the Continue extension from the primary side bar
  • Click the settings cog on the bottom right-hand side of the Continue column
  • Paste the config.json settings (cf. gist)

Commands

  • """: multiline message
  • /bye: quit llm

Further Reading

ollama/ollama: Get up and running with Llama 2, Mistral, Gemma, and other large language models.

Continue

DeepSeek

{
"models": [
{
"title": "DeepSeek-6.7b",
"provider": "ollama",
"model": "deepseek-coder:6.7b",
"apiBase": "http://localhost:11434",
"completionOptions": {},
"num_thread": {
"options.numThreads": 6
}
}
],
"slashCommands": [
{
"name": "edit",
"description": "Edit selected code"
},
{
"name": "comment",
"description": "Write comments for the selected code"
},
{
"name": "share",
"description": "Export this session as markdown"
},
{
"name": "cmd",
"description": "Generate a shell command"
}
],
"customCommands": [
{
"name": "test",
"prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
"description": "Write unit tests for highlighted code"
}
],
"contextProviders": [
{
"name": "diff",
"params": {}
},
{
"name": "open",
"params": {}
},
{
"name": "terminal",
"params": {}
},
{
"name": "problems",
"params": {}
},
{
"name": "codebase",
"params": {}
},
{
"name": "code",
"params": {}
},
{
"name": "docs",
"params": {}
}
],
"tabAutocompleteModel": {
"title": "Tab Autocomplete Model",
"provider": "ollama",
"model": "starcoder2:3b",
"apiBase": "http://localhost:11434"
},
"tabAutocompleteOptions": {
"useCopyBuffer": false,
"maxPromptTokens": 400,
"prefixPercentage": 0.5
},
"allowAnonymousTelemetry": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment