You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
-
This Nova extension integrates [ollama](https://ollama.com) to help you *complete code* or *generate code* based on a prompt.
1
+
This Nova extension integrates [ollama](https://ollama.com) to help you *complete code* or *generate code* based on a prompt. This extension was developed to use code completion without external services, to ensure privacy and to be independent of online services.
2
2
3
3
The extension comes with two commands, `Assist` and `Complete code`.
- Select the **Editor → ollama** menu item and click on `Assist` or `Complete code`
22
26
- Open **Command Palette …** (`shift + cmd + p`) and type `Assist` or `Complete code`
23
27
28
+
The `Assist` command is bind to `cmd + opt + ctrl + p`. To change the key binding, open the **Settings**, got to **Key Bindings** and search for *Assist*.
24
29
25
30
### Configuration
26
31
@@ -58,20 +63,18 @@ Controls how long the model will stay loaded into memory following the request
58
63
#### System message “Complete code”
59
64
Default:
60
65
```
61
-
You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Don’t format code. Don’t put code in code block. Don’t repeat the input.
66
+
You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Code should not be in a code block. Anything that is not code should be written as a code comment.
62
67
```
63
68
64
-
This system message is used when you run the “Complete code” command. You can try different messages to finetune the output.
69
+
This system message is used when you run the “Complete code” command. You can try different messages to fine-tune the output.
65
70
66
71
#### System message “Assist”
67
72
Default:
68
73
```
69
-
You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code block. Don’t repeat the input.
74
+
You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code blocks. Don’t repeat the input.
70
75
```
71
76
72
-
This system message is used when you run the “Assist” command. You can try different messages to finetune the output.
77
+
This system message is used when you run the “Assist” command. You can try different messages to fine-tune the output.
73
78
74
79
### Privacy
75
80
This extension needs **Send Network Requests** permission to send and receive requests to the locally running ollama server. No data will be sent to external servers.
76
-
77
-
> This Nova extension is briefly inspired by [ollama-autocoder (VS Code extension)](https://github.com/10Nates/ollama-autocoder)
"placeholder": "e.g. “You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Don’t format code. Don’t put code in code block. Don’t repeat the input.”",
65
-
"default": "You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Don’t format code. Don’t put code in code block. Don’t repeat the input.",
66
+
"placeholder": "e.g. “You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Code should not be in a code block. Anything that is not code should be written as a code comment.”",
67
+
"default": "You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Code should not be in a code block. Anything that is not code should be written as a code comment.",
66
68
"description": "This system message is used, when you run the “Complete code” command."
67
69
},
68
70
{
69
71
"key": "tobiaswolf.ollama.systemMessageAssist",
70
72
"title": "System message “Assist”",
71
73
"type": "text",
72
-
"placeholder": "e.g. “You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code block. Don’t repeat the input.”",
73
-
"default": "You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code block. Don’t repeat the input.",
74
+
"placeholder": "e.g. “You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code blocks. Don’t repeat the input.”",
75
+
"default": "You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code blocks. Don’t repeat the input.",
74
76
"description": "This system message is used, when you run the “Assist” command."
"placeholder": "e.g. “You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Don’t format code. Don’t put code in code block. Don’t repeat the input.”",
113
-
"default": "You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Don’t format code. Don’t put code in code block. Don’t repeat the input.",
114
+
"placeholder": "e.g. “You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Code should not be in a code block. Anything that is not code should be written as a code comment.”",
115
+
"default": "You are a code autocompletion engine. Respond with a continuation of the code provided and nothing else. Code should not be in a code block. Anything that is not code should be written as a code comment.",
114
116
"description": "This system message is used, when you run the “Complete code” command."
115
117
},
116
118
{
117
119
"key": "tobiaswolf.ollama.systemMessageAssist",
118
120
"title": "System message “Assist”",
119
121
"type": "text",
120
-
"placeholder": "e.g. “You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code block. Don’t repeat the input.”",
121
-
"default": "You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code block. Don’t repeat the input.",
122
+
"placeholder": "e.g. “You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code blocks. Don’t repeat the input.”",
123
+
"default": "You are an assistant helping with coding. Respond with code only. Don’t format code. Don’t put code in code blocks. Don’t repeat the input.",
122
124
"description": "This system message is used, when you run the “Assist” command."
0 commit comments