Copilot NES is a Deno project designed to test and evaluate AI code completion capabilities. It provides a structured framework for simulating GitHub Copilot-like behavior using various language models via the Ollama API.
- Deno runtime environment
- Access to Ollama API (or compatible endpoint)
- Valid API key for the language model service
-
Clone or navigate to the project directory:
git clone https://github.com/NeaByteLab/Copilot-NES.git cd Copilot-NES -
Create environment configuration:
cp .env.example .env
-
Configure your API key: Edit the
.envfile and replaceYOUR_API_KEY_HEREwith your actual API key:LLM_API_KEY=your_actual_api_key_here
Execute the main script to test the AI completion system:
deno run --allow-all --env-file=.env index.ts- Load Prompts: The system reads
System.mdandUser.mdfiles - API Request: Sends a structured request to the configured language model
- Process Response: Cleans code block markers from the AI response
- Save Results: Writes the cleaned content to individual files in the
./results/directory - Loop Through Models: Tests all available models sequentially for comparison
This project is licensed under the MIT license. See the LICENSE file for more info.