Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bernardo-bruning/ollama-copilot
Proxy that allows you to use ollama as a copilot like Github copilot
https://github.com/bernardo-bruning/ollama-copilot
Last synced: 3 months ago
JSON representation
Proxy that allows you to use ollama as a copilot like Github copilot
- Host: GitHub
- URL: https://github.com/bernardo-bruning/ollama-copilot
- Owner: bernardo-bruning
- License: mit
- Created: 2024-04-25T01:29:04.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-05T00:43:07.000Z (5 months ago)
- Last Synced: 2024-09-07T08:09:53.760Z (4 months ago)
- Language: Go
- Size: 2.3 MB
- Stars: 272
- Watchers: 2
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-repositories - bernardo-bruning/ollama-copilot - Proxy that allows you to use ollama as a copilot like Github copilot (Go)
README
# Ollama Copilot
Proxy that allows you to use ollama as a copilot like Github copilot
![Video presentation](presentation.gif)
## Installation
### Ollama
Ensure [ollama](https://ollama.com/download/linux) is installed:
```bash
curl -fsSL https://ollama.com/install.sh | sh
```Or follow the [manual install](https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install).
#### Models
To use the default model expected by `ollama-copilot`:
```bash
ollama pull codellama:code
```### ollama-copilot
```bash
go install github.com/bernardo-bruning/ollama-copilot@latest
```### Running
Ensure your `$PATH` includes `$HOME/go/bin` or `$GOPATH/bin`.
For example, in `~/.bashrc` or `~/.zshrc`:```bash
export PATH="$HOME/go/bin:$GOPATH/bin:$PATH"
``````bash
ollama-copilot
```## Configure IDE
### Neovim
1. Install [copilot.vim](https://github.com/github/copilot.vim)
1. Configure variables```vim
let g:copilot_proxy = 'http://localhost:11435'
let g:copilot_proxy_strict_ssl = v:false
```### VScode
1. Install [copilot extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot)
1. Sign-in or sign-up in github
1. Configure open [settings](https://code.visualstudio.com/docs/getstarted/settings) config and insert```json
{
"github.copilot.advanced": {
"debug.overrideProxyUrl": "http://localhost:11437"
},
"http.proxy": "http://localhost:11435",
"http.proxyStrictSSL": false
}
```## Roadmap
- [x] Enable completions APIs usage; fill in the middle.
- [x] Enable flexible configuration model (Currently only supported llamacode:code).
- [x] Create self-installing functionality.
- [ ] Windows setup
- [ ] Documentation on how to use.