LAI Compatible Provider for Copilot
Environmental Requirements
-VS Code 1.104.0 or higher version.
-OpenAI is compatible with API keys from vendors.
-Mainly used for Llama.cpp local model to supply VSCode Copilot calls.
-This project is not for commercial use.
⚡ Quick Start
vscode setting.json Configuration Example
{
"laicopilot.logLevel": "info",
"laicopilot.baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"laicopilot.models": [
{
"id": "gemma-4-12b-it",
"owned_by": "llamacpp",
"apiMode": "llamacpp",
"baseUrl": "http://localhost:8080",
"displayName": "Gemma-4 12B Local",
"configId": "local",
"vision": true,
"context_length": 128000,
"max_completion_tokens": 4096,
"max_tokens": 16384,
"max_history_messages": 15,
"max_system_message_length": 2000,
"disable_tools": false,
"max_tools": 15,
"max_tool_result_length": 2000,
"extra": {
"cache_prompt": true
}
},
{
"id": "Qwen3.6-35B-A3B-Uncensored",
"owned_by": "llamacpp",
"apiMode": "llamacpp",
"baseUrl": "http://localhost:8080",
"displayName": "Qwen3.6-35B Local",
"configId": "local",
"vision": true,
"context_length": 128000,
"max_tokens": 16384,
"max_history_messages": 15,
"max_system_message_length": 2000,
"disable_tools": false,
"max_tools": 15,
"extra": {
"cache_prompt": true
}
}
]
}
Acknowledgments
Thank you to all contributors.
Support & License
- License: MIT License Copyright (c) 2026 Yancy Yeung