Opening Pieces Settings

To open Pieces settings inside of the Sublime Text Plugin, you can use the command ctrl+shift+p if using Windows or Linux, or ⌘+shift+p on macOS to open the command palette.

Then, enter Pieces: Open Pieces Settings.

Adjusting Local Host (Optional) on macOS

The default localhost for the Pieces for Sublime Text Plugin is http://host:127.0.0.1. Changing this parameter to http://localhost:1000 may cause Sublime to fail when trying to load the Pieces Package.

As such, this is not recommended.

Configurable Settings

host

Specifies the address where the plugin should connect to a local service or server.

model

Determines which large language model to use for all Pieces Pilot functionality.

auto_start_pieces_os

Lets you decide whether or not to open PiecesOS automatically on startup.

snippet.autocomplete

Decide whether or not to enable auto-completion of code via suggest snippets from your repository.

All of the configurable settings inside the Pieces for Sublime Text Plugin are listed inside the Pieces.sublime-settings file, accessible via the Pieces: Open Settings command.

To change settings, you need to copy and paste the contents of the default settings file into the empty window on the right side, which you can find below:

{
	"host": "", //http://127.0.0.1:1000
	"model":"GPT-4o Chat Model",
			//  "GPT-4o Chat Model", 
			//  "GPT-4 Chat Model", 
			//  "CodeLlama GPU Chat Model",
			//  "GPT-3.5-turbo Chat Model",
			//  "Phi-2 CPU Chat Model", 
			//  "GPT-4 Preview Chat Model", 
			//  "Codey (PaLM2) Chat Model", 
			//  "Llama2 GPU Chat Model", 
			//  "(Gemini) Chat Model", 
			//  "GPT-3.5-turbo-16k Chat Model", 
			//  "Phi-2 GPU Chat Model", 
			//  "Mixtral GPU Chat Model", 
			//  "NeuralHermes-2.5-Mistral-7B CPU Chat Model", 
			//  "NeuralHermes-2.5-Mistral-7B GPU Chat Model", 
			//  "(PaLM2) Chat Model", 
			//  "Llama2 CPU Chat Model"
	"auto_start_pieces_os":true, // Open PiecesOS automatically on startup
	"snippet.autocomplete":true, // auto complete via Pieces saved snippets or not
}

Changing Your LLM Model

To change your LLM model, you can copy the contents of the settings .JSON file and tweak the parameters for the selected model to any of the available listed LLMs.

Pieces Auto-Launch on Startup

You can choose whether or not PiecesOS starts immediately on the launch of the Sublime text editor by setting the parameters to true or false.

Snippet Auto-Complete

Similarly, adjust the parameters to true or false to enable auto-completion of code via snippets to speed up your coding process.

If you have Pieces snippets saved that are relevant to the code you're writing, you'll get automatic completion for that specific language.

Saving Your Settings

Once you've copied the contents of the .JSON object and edited them to your preferences, simply save the file, reload the plugin, and restart Sublime for your changes to take effect.

You can save the .JSON file with ⌘+s (macOS) or ctrl+s (Windows / Linux). You do not need to use Save As, as the file is already existing and this is simply updating the settings file, which comes with the Pieces for Sublime Text package.

Reloading the Plugin

To reload the plugin, enter the command palette with ⌘+shift+p (macOS) or ctrl+shift+p (Windows / Linux) and type Pieces: Reload Plugin.

For additional support resources, check out our troubleshooting guide.

Updated on