⚙️ Configuration
Flexpilot supports multiple language model providers, offering support for Chat Models
for conversational interactions and Completion Models
for in-line code suggestions. Let’s dive into setting up your ideal Flexpilot configuration!
📌 Model Usage Locations
Flexpilot uses language models in specific locations to enhance your coding experience. Here are the available model usage locations:
💬 Chat Model
Chat Suggestions
: Suggested follow-up questions in the chat panel.Chat Title
: Auto-generated summary titles for conversations.Inline Chat
: Contextual chat within an active file, allowing inline editing with custom instructions.Panel Chat
: The main chat panel on the side view.Commit Message
: Quick suggestions in the commit message input.
✍️ Completion Model
Inline Completion
: Code completions as you type in the editor.
🆕 Add Model Configuration
- Open the Command Palette:
- Windows/Linux:
Ctrl+Shift+P
- macOS:
Cmd+Shift+P
- Windows/Linux:
- Select "Flexpilot: Configure Language Model Provider" > "Add new configuration".
- Choose between Chat or Completion models and select your preferred provider (e.g., OpenAI, Google Gemini).
- Enter a Nickname to identify this configuration easily.
- Provide any required provider details, like the API key, Model name and so on.
- Set the Model Usage Locations (e.g., Chat Suggestions, Inline Chat).
TIP
Select the checkbox to enable the model for all usages.
- Click OK to save your configuration.
🛠 Edit Model Configuration
- Open the Command Palette:
- Windows/Linux:
Ctrl+Shift+P
- macOS:
Cmd+Shift+P
- Windows/Linux:
- Select "Flexpilot: Configure Language Model Provider".
- Hover over the configuration you want to edit and click the ⚙️ Gear icon.
- Modify any fields as needed and click OK to save changes.
🗑 Delete Model Configuration
- Open the Command Palette:
- Windows/Linux:
Ctrl+Shift+P
- macOS:
Cmd+Shift+P
- Windows/Linux:
- Select "Flexpilot: Configure Language Model Provider".
- Hover over the configuration you wish to delete and click the 🗑️ Trash icon.
- Type the configuration’s nickname to confirm, then click OK to delete it.
🎯 Modify Usage Preferences
- Open the Command Palette:
- Windows/Linux:
Ctrl+Shift+P
- macOS:
Cmd+Shift+P
- Windows/Linux:
- Select "Flexpilot: Configure Language Model Provider" > "Modify Preferences".
- Choose a location to update and select the model configuration nickname you wish to use.
NOTE
If no valid configurations exist, you’ll see only the Disable option.
- You can enable a model by selecting its nickname or disable it as needed.
With these steps, you’re all set to customize Flexpilot to fit your coding style and workflow. Enjoy a smarter, faster coding experience! 🎉