Skip to content

NeaByteLab/Copilot-NES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copilot NES

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.

Installation

Prerequisites

  • Deno runtime environment
  • Access to Ollama API (or compatible endpoint)
  • Valid API key for the language model service

Setup

  1. Clone or navigate to the project directory:

    git clone https://github.com/NeaByteLab/Copilot-NES.git
    cd Copilot-NES
  2. Create environment configuration:

    cp .env.example .env
  3. Configure your API key: Edit the .env file and replace YOUR_API_KEY_HERE with your actual API key:

    LLM_API_KEY=your_actual_api_key_here

Usage

Running the Test

Execute the main script to test the AI completion system:

deno run --allow-all --env-file=.env index.ts

How It Works

  1. Load Prompts: The system reads System.md and User.md files
  2. API Request: Sends a structured request to the configured language model
  3. Process Response: Cleans code block markers from the AI response
  4. Save Results: Writes the cleaned content to individual files in the ./results/ directory
  5. Loop Through Models: Tests all available models sequentially for comparison

License

This project is licensed under the MIT license. See the LICENSE file for more info.