diff --git a/docs/tab-autocomplete.md b/docs/tab-autocomplete.md deleted file mode 100644 index 5d27664..0000000 --- a/docs/tab-autocomplete.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: ✅ Tab Autocomplete -description: PearAI is the open-source autopilot for software development -keywords: [shortcuts, pearai, important shortcuts, pear ai shortcuts] -sidebar_position: 3 ---- - -# ✅ Tab AutoComplete - -PearAI supports tab autocomplete, which predicts and suggests what you would type next as you're coding. Here's how to set it up: - -## Setup Guide - -1. **Setup Codestral** - - We recommend using Codestral, the leading model for code completion (or FIM — Fill In Middle). It's also open-sourced! You'll need to obtain a Codestral API key from [Mistral API](https://console.mistral.ai). - -2. **Add to PearAI config.json** - - Add the following to your config.json file (replace "YOUR_API_KEY" with your actual API key): - - ```json - "tabAutocompleteModel": { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiKey": "YOUR_API_KEY" - } - - ``` - -3. **Enjoy the development speed up with autocomplete!** - -## Alternative - -- You can also use [Supermaven](https://supermaven.com/) for tab autocomplete. It is currently one of the best autocomplete AI on the market, and provides a free tier. You can get started by installing Supermaven directly as an extension within PearAI. - -  diff --git a/docs/tab-autocomplete.mdx b/docs/tab-autocomplete.mdx new file mode 100644 index 0000000..2108903 --- /dev/null +++ b/docs/tab-autocomplete.mdx @@ -0,0 +1,88 @@ +--- +title: ✅ Tab Autocomplete +description: PearAI is the open-source autopilot for software development +keywords: [shortcuts, pearai, important shortcuts, pear ai shortcuts] +sidebar_position: 3 +--- + +# ✅ Tab AutoComplete + +PearAI supports tab autocomplete, which predicts and suggests what you would type next as you're coding. Here's how to set it up: + +## Setup Guide + +1. **Setup Codestral** + + We recommend using [Codestral](https://mistral.ai/news/codestral/), the leading model for code completion (or FIM — Fill In Middle). It's also open-sourced! You'll need to obtain a Codestral API key from [Mistral API](https://console.mistral.ai). + +2. **Add to PearAI config.json** + + Add the following to your config.json file (replace "YOUR_API_KEY" with your actual API key): + + ```json + "tabAutocompleteModel": { + "title": "Codestral", + "provider": "mistral", + "model": "codestral-latest", + "apiKey": "YOUR_API_KEY" + } + + ``` + +3. **Enjoy the development speed up with autocomplete!** + +## Alternatives + +- You can enhance your tab autocomplete with [Supermaven](https://supermaven.com/). It is currently one of the best autocomplete AI on the market, and provides a free tier. You can get started by installing Supermaven directly as an extension within PearAI. + +  + +- Additionally, you can use [Ollama](https://ollama.ai/) local models by downloading the desired model and adding it to your configuration. + + ```json + "tabAutocompleteModel": { + "title": "StarCoder2", + "provider": "ollama", + "model": "starcoder2:latest" + }, + { + "title": "Llama 3.2", + "provider": "ollama", + "model": "llama3.2:1b" + }, + { + "title": "Qwen 2.5 Coder", + "provider": "ollama", + "model": "qwen2.5-coder:1.5b" + } + ``` + +
+
+