PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Full JSON Config for vs code and ollama

Go down

Full JSON Config for vs code and ollama Empty Full JSON Config for vs code and ollama

Post by jamied_uk 3rd June 2024, 14:34

Setup vs code for RPI 5


Code:
#!/bin/bash
#(c)  J~Net 2024
# https://jnet.forumotion.com/t2014-full-json-config-for-vs-code-and-ollama#3105

echo "Setting Up VS Code For RPi 5"
sudo apt update
sudo apt install -y wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=armhf] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install -y code

echo "Finished"
echo ""
echo "Now add extenion"
echo "code --install-extension ms-python.python"
echo "Or look for json conf file and ctrl p"






Full JSON Config for vs code and ollama


Code:
{
  "models": [
    {
      "title": "Llama 3",
      "provider": "ollama",
      "model": "llama3"
    },
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    },
    {
      "title": "Codestral",
      "provider": "ollama",
      "model": "stable-code"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite 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"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Starcoder 3b",
    "provider": "ollama",
    "model": "starcoder2:3b"
  },
  "allowAnonymousTelemetry": true,
  "embeddingsProvider": {
    "provider": "transformers.js"
  },
  "additionalEmbeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  }
}
jamied_uk
jamied_uk
Admin

Posts : 3020
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Full JSON Config for vs code and ollama Empty Re: Full JSON Config for vs code and ollama

Post by jamied_uk 3rd June 2024, 15:26

For github version instead For Linux and RPI5

https://github.com/jamieduk/VS-Code-RPI5-Setup



Code:
git clone https://github.com/jamieduk/VS-Code-RPI5-Setup.git
jamied_uk
jamied_uk
Admin

Posts : 3020
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum