⚙️ Generic (OpenAI Compatible) Provider Setup
Integrate any OpenAI-compatible API provider, such as Ollama, with Flexpilot, an AI code assistant in VS Code. This lightweight setup provides a local, efficient alternative to cloud-based solutions.
🤖 Supported Providers
Any OpenAI-compatible API provider can be configured with Flexpilot. Below are some popular providers:
Please refer to the respective provider's documentation by clicking on the links above for getting the API key
and base URL
details.
🛠️ Configuration
Access Flexpilot settings from VS Code:
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(Mac). - Select
Flexpilot: Configure the Language Model Provider
. - Choose
Add New Configuration
- select
OpenAI Compatible (generic-chat)
as the provider.
- Press
Enter a nickname when prompted. Pressing Escape will cancel the model configuration.
Enter your API Key when prompted.
Enter the base URL when prompted. For eg.,
http://localhost:11434/v1
.Enter the Model Name when prompted. For eg.,
llama3.2:1b
.